Gromacs
2018.7
|
#include "gmxpre.h"
#include "alignedallocator.h"
#include "config.h"
#include <cstdlib>
#include <memory>
#include "gromacs/compat/make_unique.h"
#include "gromacs/utility/gmxassert.h"
Implements AlignedAllocator.
Functions | |
static void * | gmx::anonymous_namespace{alignedallocator.cpp}::alignedMallocGeneric (std::size_t bytes, std::size_t alignment) |
Allocate aligned memory in a fully portable way. More... | |
static void | gmx::anonymous_namespace{alignedallocator.cpp}::alignedFreeGeneric (void *p) |
Free aligned memory. More... | |
static void * | gmx::anonymous_namespace{alignedallocator.cpp}::mallocImpl (std::size_t bytes, std::size_t alignment) |
Implement malloc of bytes of memory, aligned to alignment . | |
static void | gmx::anonymous_namespace{alignedallocator.cpp}::freeImpl (void *p) |
Free aligned memory allocated with mallocImpl(). | |
static std::size_t | gmx::getPageSize () |
Return a page size, from a sysconf/WinAPI query if available, or a default guess (4096 bytes). More... | |