AlignedMalloc.h File Reference

Detailed Description

(De) Allocation of aligned memory

Author
Martin Bauer marti.nosp@m.n.ba.nosp@m.uer@f.nosp@m.au.d.nosp@m.e
#include "core/DataTypes.h"
#include <cstdlib>

Namespaces

 walberla
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 
 walberla::field
 

Functions

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