| 1 | /* Alloc.h -- Memory allocation functions |
| 2 | 2008-03-13 |
| 3 | Igor Pavlov |
| 4 | Public domain */ |
| 5 | |
| 6 | #ifndef __COMMON_ALLOC_H |
| 7 | #define __COMMON_ALLOC_Hcxx . . $ `compression/lzma/Alloc.h:7:9`! |
| 8 | |
| 9 | #include <stddef.h> |
| 10 | |
| 11 | void *MyAlloccxx . . $ MyAlloc(bfcfa4d6b7f7ef64).(size_tcxx . . $ size_t# size); |
| 12 | void MyFreecxx . . $ MyFree(5d22bdacc48458e8).(void *address); |
| 13 | |
| 14 | #ifdef _WIN32 |
| 15 | |
| 16 | void SetLargePageSize(void); |
| 17 | |
| 18 | void *MidAlloc(size_t size); |
| 19 | void MidFree(void *address); |
| 20 | void *BigAlloc(size_t size); |
| 21 | void BigFree(void *address); |
| 22 | |
| 23 | #else |
| 24 | |
| 25 | #define MidAlloccxx . . $ `compression/lzma/Alloc.h:25:9`!(size) MyAlloc(size) |
| 26 | #define MidFreecxx . . $ `compression/lzma/Alloc.h:26:9`!(address) MyFree(address) |
| 27 | #define BigAlloccxx . . $ `compression/lzma/Alloc.h:27:9`!(size) MyAlloc(size) |
| 28 | #define BigFreecxx . . $ `compression/lzma/Alloc.h:28:9`!(address) MyFree(address) |
| 29 | |
| 30 | #endif |
| 31 | |
| 32 | #endif |