Gromacs  2018.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
alignedallocator.cpp File Reference
#include "gmxpre.h"
#include "alignedallocator.h"
#include "config.h"
#include <cstdlib>
#include <memory>
#include "gromacs/compat/make_unique.h"
#include "gromacs/utility/gmxassert.h"
+ Include dependency graph for alignedallocator.cpp:

Description

Implements AlignedAllocator.

Author
Erik Lindahl erik..nosp@m.lind.nosp@m.ahl@g.nosp@m.mail.nosp@m..com
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

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...