Xmipp
v3.23.11-Nereus
|
#include <cstddef>
#include <stdlib.h>
#include <cstdint>
#include <memory>
#include <sys/mman.h>
#include <unistd.h>
Go to the source code of this file.
Namespaces | |
memoryUtils | |
Functions | |
constexpr size_t | memoryUtils::operator"" _kB (unsigned long long int bytes) |
constexpr size_t | memoryUtils::operator"" _MB (unsigned long long int bytes) |
constexpr size_t | memoryUtils::operator"" _GB (unsigned long long int bytes) |
constexpr double | memoryUtils::operator"" _kB (long double bytes) |
constexpr double | memoryUtils::operator"" _MB (long double bytes) |
constexpr double | memoryUtils::operator"" _GB (long double bytes) |
void * | memoryUtils::page_aligned_alloc (size_t bytes) |
template<typename T > | |
T * | memoryUtils::page_aligned_alloc (size_t elems, bool initToZero) |
template<typename T > | |
constexpr T | memoryUtils::kB (T bytes) |
template<typename T > | |
constexpr T | memoryUtils::MB (T bytes) |
template<typename T > | |
constexpr T | memoryUtils::GB (T bytes) |
uint32_t | memoryUtils::alignmentOf (uintptr_t ptr) |
uint32_t | memoryUtils::alignmentOf (void *ptr) |
template<typename T > | |
T | memoryUtils::align (T number, uint32_t alignment) |
template<typename T , typename... Args> | |
std::unique_ptr< T > | memoryUtils::make_unique (Args &&... args) |