17 #ifndef BT_HEAP_MANAGER_H__
18 #define BT_HEAP_MANAGER_H__
21 #define HEAP_STACK_SIZE 32
23 #define HEAP_STACK_SIZE 64
26 #define MIN_ALLOC_SIZE 16
67 #if defined(_WIN64) || defined(__LP64__) || defined(__x86_64__)
70 p = ((p+127) & 0xffffffffffffff80);
71 bytes = (bytes+127) & 0xffffffffffffff80;
74 bytes = (bytes+15) & 0xfffffffffffffff0;
82 p = ((p+127) & 0xffffff80);
83 bytes = (bytes+127) & 0xffffff80;
86 bytes = (bytes+15) & 0xfffffff0;
90 unsigned char * bla = (
unsigned char *)(p + bytes);
116 #endif //BT_HEAP_MANAGER_H__
void * allocate(size_t bytes, int alignment=ALIGN16)
#define ATTRIBUTE_ALIGNED16(a)
HeapManager(unsigned char *buf, int bytes)
unsigned char * mPoolStack[64]