KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Standard C Malloc functionality. More...
Go to the source code of this file.
Data Structures | |
struct | mallinfo |
ANSI C functions. More... | |
Macros | |
#define | M_MXFAST 1 |
#define | DEFAULT_MXFAST 64 |
#define | M_TRIM_THRESHOLD -1 |
#define | DEFAULT_TRIM_THRESHOLD (256*1024) |
#define | M_TOP_PAD -2 |
#define | DEFAULT_TOP_PAD 0 |
#define | M_MMAP_THRESHOLD -3 |
#define | DEFAULT_MMAP_THRESHOLD (256*1024) |
#define | M_MMAP_MAX -4 |
#define | DEFAULT_MMAP_MAX 65536 |
Functions | |
void * | malloc (size_t size) |
Allocate a block of memory. | |
void * | calloc (size_t nmemb, size_t size) |
Allocate a block of memory and initialize it to 0. | |
void | free (void *ptr) |
Release a previously allocated block of memory. | |
void * | realloc (void *ptr, size_t size) |
Change the size of a previously allocated block of memory. | |
void * | memalign (size_t alignment, size_t size) |
Allocate a block of memory aligned to a specified block size. | |
void * | valloc (size_t size) |
Allocate a block of memory aligned to the system page size. | |
void * | aligned_alloc (size_t alignment, size_t size) |
Allocate memory aligned to a specified block size. | |
struct mallinfo | mallinfo () |
Sets tunable parameters for malloc related options. | |
int | mallopt (int, int) |
void | malloc_stats (void) |
Debug function. | |
int | malloc_irq_safe (void) |
Determine if it is safe to call malloc() in an IRQ context. | |
int | mem_check_block (void *p) |
Only available with KM_DBG. | |
int | mem_check_all (void) |
Only available with KM_DBG. | |
Standard C Malloc functionality.
This implements standard C heap allocation, deallocation, and stats.