vSMC
vSMC: Scalable Monte Carlo
Static Public Member Functions | List of all members
vsmc::AlignedMemorySYS Class Reference

Aligned memory using native system aligned memory allocation. More...

#include <vsmc/utility/aligned_memory.hpp>

Static Public Member Functions

static void aligned_free (void *ptr)
 
static void * aligned_malloc (std::size_t n, std::size_t alignment)
 

Detailed Description

Aligned memory using native system aligned memory allocation.

This class use posix_memalign and free on POSIX systems (Mac OS X, Linux, etc.) and _aligned_malloc and _aligned_free on Windows.

Definition at line 139 of file aligned_memory.hpp.

Member Function Documentation

static void vsmc::AlignedMemorySYS::aligned_free ( void *  ptr)
inlinestatic

Definition at line 156 of file aligned_memory.hpp.

static void* vsmc::AlignedMemorySYS::aligned_malloc ( std::size_t  n,
std::size_t  alignment 
)
inlinestatic

Definition at line 142 of file aligned_memory.hpp.