Lines Matching defs:heap
24 // A small, simple heap manager based (loosely) on
25 // the startup heap manager from FreeBSD, optimized for space.
32 // as two byte offsets within the heap, rather than (4 or 8 byte) pointers.
63 char heap[HEAP_SIZE] __attribute__((aligned));
72 heap_offset next_node; // offset into heap
91 (heap_node*)(&heap[HEAP_SIZE]); // one past the end of the heap
95 return (heap_node*)(heap + (offset * sizeof(heap_node)));
100 static_cast<size_t>(reinterpret_cast<const char*>(ptr) - heap) /
104 // Return a pointer to the first address, 'A', in `heap` that can actually be
109 heap_node* node = (heap_node*)heap;
129 return ptr >= heap && ptr < (heap + HEAP_SIZE);