RetroArch
Macros | Functions
alloc.h File Reference
#include <retro_inline.h>
#include <limits.h>
#include <stdlib.h>
#include "../share/compat.h"
Include dependency graph for alloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SIZE_MAX   SIZE_T_MAX
 

Functions

static INLINE voidsafe_malloc_ (size_t size)
 
static INLINE voidsafe_calloc_ (size_t nmemb, size_t size)
 
static INLINE voidsafe_malloc_add_2op_ (size_t size1, size_t size2)
 
static INLINE voidsafe_malloc_add_3op_ (size_t size1, size_t size2, size_t size3)
 
static INLINE voidsafe_malloc_add_4op_ (size_t size1, size_t size2, size_t size3, size_t size4)
 
voidsafe_malloc_mul_2op_ (size_t size1, size_t size2)
 
static INLINE voidsafe_malloc_mul_3op_ (size_t size1, size_t size2, size_t size3)
 
static INLINE voidsafe_malloc_mul2add_ (size_t size1, size_t size2, size_t size3)
 
static INLINE voidsafe_malloc_muladd2_ (size_t size1, size_t size2, size_t size3)
 
static INLINE voidsafe_realloc_ (void *ptr, size_t size)
 
static INLINE voidsafe_realloc_add_2op_ (void *ptr, size_t size1, size_t size2)
 
static INLINE voidsafe_realloc_add_3op_ (void *ptr, size_t size1, size_t size2, size_t size3)
 
static INLINE voidsafe_realloc_add_4op_ (void *ptr, size_t size1, size_t size2, size_t size3, size_t size4)
 
static INLINE voidsafe_realloc_mul_2op_ (void *ptr, size_t size1, size_t size2)
 
static INLINE voidsafe_realloc_muladd2_ (void *ptr, size_t size1, size_t size2, size_t size3)
 

Macro Definition Documentation

◆ SIZE_MAX

#define SIZE_MAX   SIZE_T_MAX

Function Documentation

◆ safe_calloc_()

static INLINE void* safe_calloc_ ( size_t  nmemb,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ safe_malloc_()

static INLINE void* safe_malloc_ ( size_t  size)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ safe_malloc_add_2op_()

static INLINE void* safe_malloc_add_2op_ ( size_t  size1,
size_t  size2 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ safe_malloc_add_3op_()

static INLINE void* safe_malloc_add_3op_ ( size_t  size1,
size_t  size2,
size_t  size3 
)
static
Here is the call graph for this function:

◆ safe_malloc_add_4op_()

static INLINE void* safe_malloc_add_4op_ ( size_t  size1,
size_t  size2,
size_t  size3,
size_t  size4 
)
static
Here is the call graph for this function:

◆ safe_malloc_mul2add_()

static INLINE void* safe_malloc_mul2add_ ( size_t  size1,
size_t  size2,
size_t  size3 
)
static
Here is the call graph for this function:

◆ safe_malloc_mul_2op_()

void* safe_malloc_mul_2op_ ( size_t  size1,
size_t  size2 
)

◆ safe_malloc_mul_3op_()

static INLINE void* safe_malloc_mul_3op_ ( size_t  size1,
size_t  size2,
size_t  size3 
)
static
Here is the call graph for this function:

◆ safe_malloc_muladd2_()

static INLINE void* safe_malloc_muladd2_ ( size_t  size1,
size_t  size2,
size_t  size3 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ safe_realloc_()

static INLINE void* safe_realloc_ ( void ptr,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ safe_realloc_add_2op_()

static INLINE void* safe_realloc_add_2op_ ( void ptr,
size_t  size1,
size_t  size2 
)
static
Here is the call graph for this function:

◆ safe_realloc_add_3op_()

static INLINE void* safe_realloc_add_3op_ ( void ptr,
size_t  size1,
size_t  size2,
size_t  size3 
)
static

◆ safe_realloc_add_4op_()

static INLINE void* safe_realloc_add_4op_ ( void ptr,
size_t  size1,
size_t  size2,
size_t  size3,
size_t  size4 
)
static

◆ safe_realloc_mul_2op_()

static INLINE void* safe_realloc_mul_2op_ ( void ptr,
size_t  size1,
size_t  size2 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ safe_realloc_muladd2_()

static INLINE void* safe_realloc_muladd2_ ( void ptr,
size_t  size1,
size_t  size2,
size_t  size3 
)
static
Here is the call graph for this function: