SG++-Doxygen-Documentation
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

◆ aligned_free

#define aligned_free (   addr)    free(addr)

◆ aligned_malloc

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

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

◆ POSIX_MEMALIGN

#define POSIX_MEMALIGN

◆ SGPPMEMALIGNMENT

#define SGPPMEMALIGNMENT   64

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

Function Documentation

◆ operator delete()

void operator delete ( void *  p)
throw (
)

References aligned_free, and friedman::p.

◆ operator delete[]()

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

References aligned_free, and friedman::p.

◆ operator new()

void* operator new ( size_t  size)

◆ operator new[]()

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