2010-09-16 21:59:41 +02:00
|
|
|
// 2 MEM2 allocators, one for general purpose, one for covers
|
|
|
|
// Aligned and padded to 32 bytes, as required by many functions
|
|
|
|
|
|
|
|
#ifndef __MEM2_H_
|
|
|
|
#define __MEM2_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2011-01-02 14:56:24 +01:00
|
|
|
extern "C" {
|
2010-09-16 21:59:41 +02:00
|
|
|
#endif
|
|
|
|
|
2012-02-05 19:38:26 +01:00
|
|
|
void *MEM1_alloc(unsigned int s);
|
|
|
|
void *MEM1_memalign(unsigned int a, unsigned int s);
|
|
|
|
void *MEM1_realloc(void *p, unsigned int s);
|
|
|
|
void MEM1_free(void *p);
|
|
|
|
|
2010-09-25 10:51:44 +02:00
|
|
|
void MEM2_init(unsigned int mem2Size);
|
|
|
|
void MEM2_cleanup(void);
|
|
|
|
void MEM2_takeBigOnes(bool b);
|
|
|
|
void *MEM2_alloc(unsigned int s);
|
|
|
|
void *MEM2_realloc(void *p, unsigned int s);
|
|
|
|
void MEM2_free(void *p);
|
|
|
|
unsigned int MEM2_usableSize(void *p);
|
|
|
|
unsigned int MEM2_freesize();
|
2010-09-16 21:59:41 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // !defined(__MEM2_H_)
|