mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
6dd1600936
* Move qrand to libc64 * use an union to avoid type punning * __osMalloc * math64.c * fixed_point.h * sleep * aprintf.h * sprintf * malloc * use original names on aprintf.c and malloc.c * qrand cleanup pass * use original names of sleep.c * og names for sprintf * more cleanup * format * fixes * whoops * use ARRAY_COUNT again * comment * Use `fu` * forgot this one * review * fix * sneak a tiny cleanup
21 lines
505 B
C
21 lines
505 B
C
#ifndef LIBC64_MALLOC_H
|
|
#define LIBC64_MALLOC_H
|
|
|
|
#include "ultra64.h"
|
|
#include "libc64/os_malloc.h"
|
|
|
|
void* malloc(size_t size);
|
|
void* malloc_r(size_t size);
|
|
void* realloc(void* oldPtr, size_t newSize);
|
|
void free(void* ptr);
|
|
void* calloc(size_t num, size_t size);
|
|
void GetFreeArena(size_t* maxFreeBlock, size_t* bytesFree, size_t* bytesAllocated);
|
|
s32 CheckArena(void);
|
|
void MallocInit(void* start, size_t size);
|
|
void MallocCleanup(void);
|
|
s32 MallocIsInitialized(void);
|
|
|
|
extern Arena malloc_arena;
|
|
|
|
#endif
|