goat3d

annotate libs/openctm/liblzma/Alloc.h @ 54:dad392c710df

added copyright headers and license files + readme
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Apr 2014 08:50:36 +0300
parents
children
rev   line source
nuclear@14 1 /* Alloc.h -- Memory allocation functions
nuclear@14 2 2008-03-13
nuclear@14 3 Igor Pavlov
nuclear@14 4 Public domain */
nuclear@14 5
nuclear@14 6 #ifndef __COMMON_ALLOC_H
nuclear@14 7 #define __COMMON_ALLOC_H
nuclear@14 8
nuclear@14 9 #include <stddef.h>
nuclear@14 10
nuclear@14 11 #include "NameMangle.h"
nuclear@14 12
nuclear@14 13 void *MyAlloc(size_t size);
nuclear@14 14 void MyFree(void *address);
nuclear@14 15
nuclear@14 16 #ifdef _WIN32
nuclear@14 17
nuclear@14 18 void SetLargePageSize();
nuclear@14 19
nuclear@14 20 void *MidAlloc(size_t size);
nuclear@14 21 void MidFree(void *address);
nuclear@14 22 void *BigAlloc(size_t size);
nuclear@14 23 void BigFree(void *address);
nuclear@14 24
nuclear@14 25 #else
nuclear@14 26
nuclear@14 27 #define MidAlloc(size) MyAlloc(size)
nuclear@14 28 #define MidFree(address) MyFree(address)
nuclear@14 29 #define BigAlloc(size) MyAlloc(size)
nuclear@14 30 #define BigFree(address) MyFree(address)
nuclear@14 31
nuclear@14 32 #endif
nuclear@14 33
nuclear@14 34 #endif