#define HEAP_INIT_SIZE 0x8000 // 32 KiB
#define BLOCK_SIZE (sizeof(void*)) // 8 Machine Words
#define COMPACT_HEAP 0 // Use 4 byte header?
#define HEAP_INIT_SIZE 0x8000 // 32 KiB
#define BLOCK_SIZE (sizeof(void*)) // 8 Machine Words
#define COMPACT_HEAP 0 // Use 4 byte header?
- if( (Uint)gHeapEnd + ((Bytes+0xFFF)&~0xFFF) > MM_KHEAP_MAX ) {
- Bytes = MM_KHEAP_MAX - (Uint)gHeapEnd;
+ if( (tVAddr)gHeapEnd + ((Bytes+0xFFF)&~0xFFF) > MM_KHEAP_MAX ) {
+ Bytes = MM_KHEAP_MAX - (tVAddr)gHeapEnd;
&& foot->Head->Magic == MAGIC_FREE) {
foot->Head->Size += Head->Size; // Increase size
thisFoot->Head = foot->Head; // Change backlink
&& foot->Head->Magic == MAGIC_FREE) {
foot->Head->Size += Head->Size; // Increase size
thisFoot->Head = foot->Head; // Change backlink