29#define OSRoundUp32B(x) (((u32)(x) + 0x1F) & ~(0x1F))
30#define OSRoundDown32B(x) (((u32)(x)) & ~(0x1F))
32#define OSRoundUp(x, align) (((x) + (align)-1) & (-(align)))
33#define OSRoundUpPtr(x, align) ((void*)((((u32)(x)) + (align)-1) & (~((align)-1))))
35#define OSRoundDown(x, align) ((x) & (-(align)))
36#define OSRoundDownPtr(x, align) ((void*)(((u32)(x)) & (~((align)-1))))
volatile s32 __OSCurrHeap
Definition OSAlloc.c:74
s32 OSSetCurrentHeap(OSHeapHandle handle)
Definition OSAlloc.c:77
u32 OSHeapHandle
Definition OSAlloc.h:25
OSHeapHandle OSCreateHeap(void *start, void *end)
Definition OSAlloc.c:120
void OSFreeToHeap(OSHeapHandle handle, void *ptr)
Definition OSAlloc.c:65
void * OSInitAlloc(void *lo, void *hi, s32 maxHeaps)
Definition OSAlloc.c:94
static OSHeapCell * DLInsert(OSHeapCell *list, OSHeapCell *child)
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static void end(b_oh_class *i_this)
Definition d_a_b_oh.cpp:527
static u8 child[40]
Definition d_a_e_rb.cpp:675
@ start
Definition strtoul.c:8
char field_0x14[0x20 - 0x14]
Definition OSAlloc.h:22
struct OSHeapDescriptor * hd
Definition OSAlloc.h:20
struct OSHeapCell * prev
Definition OSAlloc.h:17
s32 usedSize
Definition OSAlloc.h:21
struct OSHeapCell * next
Definition OSAlloc.h:18
s32 size
Definition OSAlloc.h:19
s32 size
Definition OSAlloc.h:11
struct OSHeapCell * usedList
Definition OSAlloc.h:13
struct OSHeapCell * freeList
Definition OSAlloc.h:12
unsigned long u32
Definition types.h:10
signed long s32
Definition types.h:6