#include <retro_inline.h>
#include <limits.h>
#include <stdlib.h>
#include "../share/compat.h"
Go to the source code of this file.
|
static INLINE void * | safe_malloc_ (size_t size) |
|
static INLINE void * | safe_calloc_ (size_t nmemb, size_t size) |
|
static INLINE void * | safe_malloc_add_2op_ (size_t size1, size_t size2) |
|
static INLINE void * | safe_malloc_add_3op_ (size_t size1, size_t size2, size_t size3) |
|
static INLINE void * | safe_malloc_add_4op_ (size_t size1, size_t size2, size_t size3, size_t size4) |
|
void * | safe_malloc_mul_2op_ (size_t size1, size_t size2) |
|
static INLINE void * | safe_malloc_mul_3op_ (size_t size1, size_t size2, size_t size3) |
|
static INLINE void * | safe_malloc_mul2add_ (size_t size1, size_t size2, size_t size3) |
|
static INLINE void * | safe_malloc_muladd2_ (size_t size1, size_t size2, size_t size3) |
|
static INLINE void * | safe_realloc_ (void *ptr, size_t size) |
|
static INLINE void * | safe_realloc_add_2op_ (void *ptr, size_t size1, size_t size2) |
|
static INLINE void * | safe_realloc_add_3op_ (void *ptr, size_t size1, size_t size2, size_t size3) |
|
static INLINE void * | safe_realloc_add_4op_ (void *ptr, size_t size1, size_t size2, size_t size3, size_t size4) |
|
static INLINE void * | safe_realloc_mul_2op_ (void *ptr, size_t size1, size_t size2) |
|
static INLINE void * | safe_realloc_muladd2_ (void *ptr, size_t size1, size_t size2, size_t size3) |
|
◆ SIZE_MAX
#define SIZE_MAX SIZE_T_MAX |
◆ safe_calloc_()
static INLINE void* safe_calloc_ |
( |
size_t |
nmemb, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ safe_malloc_()
◆ safe_malloc_add_2op_()
static INLINE void* safe_malloc_add_2op_ |
( |
size_t |
size1, |
|
|
size_t |
size2 |
|
) |
| |
|
static |
◆ safe_malloc_add_3op_()
static INLINE void* safe_malloc_add_3op_ |
( |
size_t |
size1, |
|
|
size_t |
size2, |
|
|
size_t |
size3 |
|
) |
| |
|
static |
◆ safe_malloc_add_4op_()
static INLINE void* safe_malloc_add_4op_ |
( |
size_t |
size1, |
|
|
size_t |
size2, |
|
|
size_t |
size3, |
|
|
size_t |
size4 |
|
) |
| |
|
static |
◆ safe_malloc_mul2add_()
static INLINE void* safe_malloc_mul2add_ |
( |
size_t |
size1, |
|
|
size_t |
size2, |
|
|
size_t |
size3 |
|
) |
| |
|
static |
◆ 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 |
◆ safe_malloc_muladd2_()
static INLINE void* safe_malloc_muladd2_ |
( |
size_t |
size1, |
|
|
size_t |
size2, |
|
|
size_t |
size3 |
|
) |
| |
|
static |
◆ safe_realloc_()
◆ safe_realloc_add_2op_()
static INLINE void* safe_realloc_add_2op_ |
( |
void * |
ptr, |
|
|
size_t |
size1, |
|
|
size_t |
size2 |
|
) |
| |
|
static |
◆ 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 |
◆ safe_realloc_muladd2_()
static INLINE void* safe_realloc_muladd2_ |
( |
void * |
ptr, |
|
|
size_t |
size1, |
|
|
size_t |
size2, |
|
|
size_t |
size3 |
|
) |
| |
|
static |