EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

BaseTools/Source/C/LzmaCompress/Sdk/C/Alloc.h

Go to the documentation of this file.
00001 /* Alloc.h -- Memory allocation functions
00002 2008-03-13
00003 Igor Pavlov
00004 Public domain */
00005 
00006 #ifndef __COMMON_ALLOC_H
00007 #define __COMMON_ALLOC_H
00008 
00009 #include <stddef.h>
00010 
00011 void *MyAlloc(size_t size);
00012 void MyFree(void *address);
00013 
00014 #ifdef _WIN32
00015 
00016 void SetLargePageSize();
00017 
00018 void *MidAlloc(size_t size);
00019 void MidFree(void *address);
00020 void *BigAlloc(size_t size);
00021 void BigFree(void *address);
00022 
00023 #else
00024 
00025 #define MidAlloc(size) MyAlloc(size)
00026 #define MidFree(address) MyFree(address)
00027 #define BigAlloc(size) MyAlloc(size)
00028 #define BigFree(address) MyFree(address)
00029 
00030 #endif
00031 
00032 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines