michael@0: // Common/Alloc.h michael@0: michael@0: #ifndef __COMMON_ALLOC_H michael@0: #define __COMMON_ALLOC_H michael@0: michael@0: #include michael@0: michael@0: void *MyAlloc(size_t size) throw(); michael@0: void MyFree(void *address) throw(); michael@0: michael@0: #ifdef _WIN32 michael@0: michael@0: bool SetLargePageSize(); michael@0: michael@0: void *MidAlloc(size_t size) throw(); michael@0: void MidFree(void *address) throw(); michael@0: void *BigAlloc(size_t size) throw(); michael@0: void BigFree(void *address) throw(); michael@0: michael@0: #else michael@0: michael@0: #define MidAlloc(size) MyAlloc(size) michael@0: #define MidFree(address) MyFree(address) michael@0: #define BigAlloc(size) MyAlloc(size) michael@0: #define BigFree(address) MyFree(address) michael@0: michael@0: #endif michael@0: michael@0: #endif