view src/win32/7zip/7z/C/Alloc.h @ 4:5f6f2134e8ce

apu appears to not be used
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:35:58 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 /* Alloc.h -- Memory allocation functions
2 2008-03-13
3 Igor Pavlov
4 Public domain */
6 #ifndef __COMMON_ALLOC_H
7 #define __COMMON_ALLOC_H
9 #include <stddef.h>
11 void *MyAlloc(size_t size);
12 void MyFree(void *address);
14 #ifdef _WIN32
16 void SetLargePageSize();
18 void *MidAlloc(size_t size);
19 void MidFree(void *address);
20 void *BigAlloc(size_t size);
21 void BigFree(void *address);
23 #else
25 #define MidAlloc(size) MyAlloc(size)
26 #define MidFree(address) MyFree(address)
27 #define BigAlloc(size) MyAlloc(size)
28 #define BigFree(address) MyFree(address)
30 #endif
32 #endif