SG++
AlignedMemory.cpp File Reference
#include <new>
#include <exception>
#include <stdlib.h>

Macros

#define aligned_free(addr)   free(addr)
 
#define aligned_malloc(p, size, alignment)   int success = posix_memalign(&p, SGPPMEMALIGNMENT, size);
 
#define POSIX_MEMALIGN
 
#define SGPPMEMALIGNMENT   64
 

Functions

void operator delete (void *p) throw ()
 
void operator delete[] (void *p) throw ()
 
void * operator new (size_t size)
 
void * operator new[] (size_t size) throw (std::bad_alloc)
 

Macro Definition Documentation

#define aligned_free (   addr)    free(addr)
#define aligned_malloc (   p,
  size,
  alignment 
)    int success = posix_memalign(&p, SGPPMEMALIGNMENT, size);

Referenced by operator new(), and operator new[]().

#define POSIX_MEMALIGN
#define SGPPMEMALIGNMENT   64

Referenced by operator new(), and operator new[]().

Function Documentation

void operator delete ( void *  p)
throw (
)

References aligned_free.

void operator delete[] ( void *  p)
throw (
)

References aligned_free.

void* operator new ( size_t  size)

References aligned_malloc, and SGPPMEMALIGNMENT.

void* operator new[] ( size_t  size)
throw (std::bad_alloc
)

References aligned_malloc, and SGPPMEMALIGNMENT.