annotate src/win32/7zip/7z/C/Alloc.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
rev   line source
rlm@1 1 /* Alloc.h -- Memory allocation functions
rlm@1 2 2008-03-13
rlm@1 3 Igor Pavlov
rlm@1 4 Public domain */
rlm@1 5
rlm@1 6 #ifndef __COMMON_ALLOC_H
rlm@1 7 #define __COMMON_ALLOC_H
rlm@1 8
rlm@1 9 #include <stddef.h>
rlm@1 10
rlm@1 11 void *MyAlloc(size_t size);
rlm@1 12 void MyFree(void *address);
rlm@1 13
rlm@1 14 #ifdef _WIN32
rlm@1 15
rlm@1 16 void SetLargePageSize();
rlm@1 17
rlm@1 18 void *MidAlloc(size_t size);
rlm@1 19 void MidFree(void *address);
rlm@1 20 void *BigAlloc(size_t size);
rlm@1 21 void BigFree(void *address);
rlm@1 22
rlm@1 23 #else
rlm@1 24
rlm@1 25 #define MidAlloc(size) MyAlloc(size)
rlm@1 26 #define MidFree(address) MyFree(address)
rlm@1 27 #define BigAlloc(size) MyAlloc(size)
rlm@1 28 #define BigFree(address) MyFree(address)
rlm@1 29
rlm@1 30 #endif
rlm@1 31
rlm@1 32 #endif