all repos — mgba @ dab12cf5c674542cae0db7708c333035255fbc65

mGBA Game Boy Advance Emulator

src/third-party/lzma/Alloc.h (view raw)

 1/* Alloc.h -- Memory allocation functions
 22015-02-21 : Igor Pavlov : Public domain */
 3
 4#ifndef __COMMON_ALLOC_H
 5#define __COMMON_ALLOC_H
 6
 7#include "7zTypes.h"
 8
 9EXTERN_C_BEGIN
10
11void *MyAlloc(size_t size);
12void MyFree(void *address);
13
14#ifdef _WIN32
15
16void SetLargePageSize();
17
18void *MidAlloc(size_t size);
19void MidFree(void *address);
20void *BigAlloc(size_t size);
21void BigFree(void *address);
22
23#else
24
25#define MidAlloc(size) MyAlloc(size)
26#define MidFree(address) MyFree(address)
27#define BigAlloc(size) MyAlloc(size)
28#define BigFree(address) MyFree(address)
29
30#endif
31
32extern ISzAlloc g_Alloc;
33extern ISzAlloc g_BigAlloc;
34
35EXTERN_C_END
36
37#endif