AlignedMalloc.cpp File Reference

Detailed Description

Implementation of aligned memory allocation.

Martin Bauer
#include "AlignedMalloc.h"
#include "core/debug/Debug.h"


 Storage for detected contacts which can be used to perform actions for all contacts, e.g.


void * walberla::field::aligned_malloc (uint_t size, uint_t alignment)
 Allocates memory starting at an aligned location. More...
void * walberla::field::aligned_malloc_with_offset (uint_t size, uint_t alignment, uint_t offset)
 Allocates memory such that (ptr+offset) is aligned. More...
void walberla::field::aligned_free (void *ptr)
 Analogous to free for memory allocated with aligned_malloc. More...