80 virtual void do_free(
void* ptr);
static unsigned long int next
Definition CARDUnlock.c:76
JKRExpHeap * JKRCreateExpHeap(u32 size, JKRHeap *parent, bool errorFlag)
Definition JKRExpHeap.h:113
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static s32 r2
Definition c_math.cpp:176
static s32 r1
Definition c_math.cpp:173
Definition JKRExpHeap.h:16
bool isValid() const
Definition JKRExpHeap.h:29
JKRExpHeap::CMemBlock * allocBack(u32 size, u8 groupId1, u8 alignment1, u8 groupId2, u8 alignment2)
Definition JKRExpHeap.cpp:947
u32 size
Definition JKRExpHeap.h:43
u8 mFlags
Definition JKRExpHeap.h:41
JKRExpHeap::CMemBlock * allocFore(u32 size, u8 groupId1, u8 alignment1, u8 groupId2, u8 alignment2)
Definition JKRExpHeap.cpp:929
static CMemBlock * getHeapBlock(void *ptr)
Definition JKRExpHeap.cpp:974
bool _isTempMemBlock() const
Definition JKRExpHeap.h:30
int getAlignment() const
Definition JKRExpHeap.h:31
CMemBlock * mPrev
Definition JKRExpHeap.h:44
CMemBlock * getPrevBlock() const
Definition JKRExpHeap.h:33
u8 mGroupId
Definition JKRExpHeap.h:42
u8 getGroupId() const
Definition JKRExpHeap.h:36
void * getContent() const
Definition JKRExpHeap.h:32
CMemBlock * mNext
Definition JKRExpHeap.h:45
static CMemBlock * getBlock(void *data)
Definition JKRExpHeap.h:37
void initiate(CMemBlock *prev, CMemBlock *next, u32 size, u8 groupId, u8 alignment)
Definition JKRExpHeap.cpp:917
u32 getSize() const
Definition JKRExpHeap.h:35
int free(JKRExpHeap *heap)
Definition JKRExpHeap.cpp:967
void newGroupId(u8 groupId)
Definition JKRExpHeap.h:28
u16 mMagic
Definition JKRExpHeap.h:40
CMemBlock * getNextBlock() const
Definition JKRExpHeap.h:34
static u16 data[4]
Definition d_vibration.cpp:114
static u8 block[48]
Definition fstload.c:39
Definition d_a_balloon_2D.h:178
void * field_0x70
Definition JKRExpHeap.h:100
static JKRExpHeap * createRoot(int maxHeaps, bool errorFlag)
Definition JKRExpHeap.cpp:11
virtual s32 do_changeGroupID(u8 newGroupID)
Definition JKRExpHeap.cpp:431
void removeUsedBlock(CMemBlock *block)
Definition JKRExpHeap.cpp:647
virtual ~JKRExpHeap()
Definition JKRExpHeap.cpp:116
void appendUsedList(CMemBlock *newblock)
Definition JKRExpHeap.cpp:581
u8 mAllocMode
Definition JKRExpHeap.h:95
bool field_0x6e
Definition JKRExpHeap.h:97
CMemBlock * mHeadUsedList
Definition JKRExpHeap.h:104
CMemBlock * getHeadUsedList() const
Definition JKRExpHeap.h:68
CMemBlock * mTailFreeList
Definition JKRExpHeap.h:103
virtual s32 do_getFreeSize()
Definition JKRExpHeap.cpp:507
void setAllocationMode(EAllocMode mode)
Definition JKRExpHeap.h:69
virtual bool check()
Definition JKRExpHeap.cpp:737
void recycleFreeBlock(CMemBlock *block)
Definition JKRExpHeap.cpp:666
CMemBlock * mTailUsedList
Definition JKRExpHeap.h:105
s32 getUsedSize(u8 groupId) const
Definition JKRExpHeap.cpp:548
void * allocFromHead(u32 size, int align)
Definition JKRExpHeap.cpp:171
virtual void do_destroy()
Definition JKRExpHeap.cpp:90
virtual void state_register(JKRHeap::TState *p, u32 id) const
Definition JKRExpHeap.cpp:986
virtual bool state_compare(JKRHeap::TState const &r1, JKRHeap::TState const &r2) const
Definition JKRExpHeap.cpp:1011
virtual u32 getHeapType()
Definition JKRExpHeap.cpp:1025
u8 mCurrentGroupId
Definition JKRExpHeap.h:96
u32 field_0x74
Definition JKRExpHeap.h:101
virtual void do_freeTail()
Definition JKRExpHeap.cpp:411
virtual s32 do_getSize(void *ptr)
Definition JKRExpHeap.cpp:495
EAllocMode
Definition JKRExpHeap.h:12
@ ALLOC_MODE_1
Definition JKRExpHeap.h:13
virtual void do_fillFreeArea()
Definition JKRExpHeap.cpp:427
virtual bool dump_sort()
Definition JKRExpHeap.cpp:854
void joinTwoBlocks(CMemBlock *block)
Definition JKRExpHeap.cpp:720
virtual void do_free(void *ptr)
Definition JKRExpHeap.cpp:387
virtual void * do_alloc(u32 size, int alignment)
Definition JKRExpHeap.cpp:121
virtual void * do_getMaxFreeBlock()
Definition JKRExpHeap.cpp:521
CMemBlock * mHeadFreeList
Definition JKRExpHeap.h:102
virtual void do_freeAll()
Definition JKRExpHeap.cpp:399
static JKRExpHeap * create(u32 size, JKRHeap *parent, bool errorFlag)
Definition JKRExpHeap.cpp:28
void * allocFromTail(u32 size, int align)
Definition JKRExpHeap.cpp:313
void setFreeBlock(CMemBlock *block, CMemBlock *prev, CMemBlock *next)
Definition JKRExpHeap.cpp:606
virtual s32 do_getTotalFreeSize()
Definition JKRExpHeap.cpp:537
virtual u8 do_getCurrentGroupId()
Definition JKRExpHeap.cpp:1030
virtual s32 do_resize(void *ptr, u32 size)
Definition JKRExpHeap.cpp:440
void removeFreeBlock(CMemBlock *block)
Definition JKRExpHeap.cpp:628
virtual bool dump()
Definition JKRExpHeap.cpp:806
s32 getTotalUsedSize(void) const
Definition JKRExpHeap.cpp:566
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8