mirror of
https://github.com/zeldaret/af.git
synced 2026-09-26 21:35:21 -04:00
0d54e2ae4c
* __osMalloc * aprintf.c * math64.c * qrand.c * sleep.c * sprintf.c * malloc.c * fixes * fp and math64 cleanup * RAD_TO_BINANG
22 lines
477 B
C
22 lines
477 B
C
#ifndef LIBC64_MALLOC_H
|
|
#define LIBC64_MALLOC_H
|
|
|
|
#include "ultra64.h"
|
|
|
|
struct Arena;
|
|
|
|
void* malloc(size_t size);
|
|
void* malloc_r(size_t size);
|
|
void* realloc(void* ptr, size_t size);
|
|
void free(void* ptr);
|
|
void* calloc(s32 num, size_t size);
|
|
void GetFreeArena(size_t* outMaxFree, size_t* outFree, size_t* outAlloc);
|
|
s32 CheckArena(void);
|
|
void MallocInit(void* heap, size_t size);
|
|
void MallocCleanup(void);
|
|
s32 MallocIsInitialized(void);
|
|
|
|
extern struct Arena malloc_arena;
|
|
|
|
#endif
|