c source code for malloc.c

This commit is contained in:
YamaArashi
2016-01-03 06:40:10 -08:00
parent 54c7ef9fc6
commit 9d535add1e
2 changed files with 221 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
typedef u8 bool8;
typedef u16 bool16;
typedef u32 bool32;
#define NULL (void *)0
#define TRUE 1
#define FALSE 0
#define CPU_SET_SRC_FIX (1 << 24)
#define CPU_SET_32BIT (1 << 26)
extern void CpuSet(void *src, void *dest, u32 controlData);