2ae3891de664a78640f82e8c096a3d4246bb1d47
[coreboot.git] / payloads / bayou / util / pbuilder / lzma / C / Common / Alloc.h
1 // Common/Alloc.h\r
2 \r
3 #ifndef __COMMON_ALLOC_H\r
4 #define __COMMON_ALLOC_H\r
5 \r
6 #include <stddef.h>\r
7 \r
8 void *MyAlloc(size_t size) throw();\r
9 void MyFree(void *address) throw();\r
10 \r
11 #ifdef _WIN32\r
12 \r
13 bool SetLargePageSize();\r
14 \r
15 void *MidAlloc(size_t size) throw();\r
16 void MidFree(void *address) throw();\r
17 void *BigAlloc(size_t size) throw();\r
18 void BigFree(void *address) throw();\r
19 \r
20 #else\r
21 \r
22 #define MidAlloc(size) MyAlloc(size)\r
23 #define MidFree(address) MyFree(address)\r
24 #define BigAlloc(size) MyAlloc(size)\r
25 #define BigFree(address) MyFree(address)\r
26 \r
27 #endif\r
28 \r
29 #endif\r