#include <rmm/detail/export.hpp>
#include <cassert>
#include <cstddef>
#include <cstdint>
Go to the source code of this file.
|
constexpr bool | rmm::is_pow2 (std::size_t value) noexcept |
| Returns whether or not value is a power of 2. More...
|
|
constexpr bool | rmm::is_supported_alignment (std::size_t alignment) noexcept |
| Returns whether or not alignment is a valid memory alignment. More...
|
|
constexpr std::size_t | rmm::align_up (std::size_t value, std::size_t alignment) noexcept |
| Align up to nearest multiple of specified power of 2. More...
|
|
constexpr std::size_t | rmm::align_down (std::size_t value, std::size_t alignment) noexcept |
| Align down to the nearest multiple of specified power of 2. More...
|
|
constexpr bool | rmm::is_aligned (std::size_t value, std::size_t alignment) noexcept |
| Checks whether a value is aligned to a multiple of a specified power of 2. More...
|
|
bool | rmm::is_pointer_aligned (void *ptr, std::size_t alignment=CUDA_ALLOCATION_ALIGNMENT) noexcept |
| Checks whether the provided pointer is aligned to a specified alignment . More...
|
|