OpenJPEG  2.1.2
Macros | Functions
opj_malloc.c File Reference
#include "opj_includes.h"

Macros

#define OPJ_SKIP_POISON
 
#define SIZE_MAX   ((size_t) -1)
 

Functions

static INLINE void * opj_aligned_alloc_n (size_t alignment, size_t size)
 
static INLINE void * opj_aligned_realloc_n (void *ptr, size_t alignment, size_t new_size)
 
void * opj_malloc (size_t size)
 Allocate an uninitialized memory block. More...
 
void * opj_calloc (size_t num, size_t size)
 Allocate a memory block with elements initialized to 0. More...
 
void * opj_aligned_malloc (size_t size)
 Allocate memory aligned to a 16 byte boundary. More...
 
void * opj_aligned_realloc (void *ptr, size_t size)
 
void opj_aligned_free (void *ptr)
 
void * opj_realloc (void *ptr, size_t new_size)
 Reallocate memory blocks. More...
 
void opj_free (void *ptr)
 Deallocates or frees a memory block. More...
 

Macro Definition Documentation

#define OPJ_SKIP_POISON
#define SIZE_MAX   ((size_t) -1)

Function Documentation

static INLINE void* opj_aligned_alloc_n ( size_t  alignment,
size_t  size 
)
static

References SIZE_MAX.

Referenced by opj_aligned_malloc(), and opj_aligned_realloc_n().

static INLINE void* opj_aligned_realloc_n ( void *  ptr,
size_t  alignment,
size_t  new_size 
)
static

References opj_aligned_alloc_n(), and SIZE_MAX.

Referenced by opj_aligned_realloc().