CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/GeneratorInterface/ReggeGribovPartonMCInterface/src/Alloc.h

Go to the documentation of this file.
00001 /* Alloc.h -- Memory allocation functions
00002 2009-02-07 : Igor Pavlov : Public domain */
00003 
00004 #ifndef __COMMON_ALLOC_H
00005 #define __COMMON_ALLOC_H
00006 
00007 #include <stddef.h>
00008 
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012 
00013 void *MyAlloc(size_t size);
00014 void MyFree(void *address);
00015 
00016 #ifdef _WIN32
00017 
00018 void SetLargePageSize();
00019 
00020 void *MidAlloc(size_t size);
00021 void MidFree(void *address);
00022 void *BigAlloc(size_t size);
00023 void BigFree(void *address);
00024 
00025 #else
00026 
00027 #define MidAlloc(size) MyAlloc(size)
00028 #define MidFree(address) MyFree(address)
00029 #define BigAlloc(size) MyAlloc(size)
00030 #define BigFree(address) MyFree(address)
00031 
00032 #endif
00033 
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037 
00038 #endif