22#include <exec/types.h>
26#define ami_memory_chip_alloc(s) malloc(s)
27#define ami_memory_chip_free(p) free(p)
29#define ami_memory_chip_alloc(s) AllocVec(s, MEMF_CHIP)
30#define ami_memory_chip_free(p) FreeVec(p)
35#define ami_memory_clear_alloc(s,v) AllocVecTags(s, AVT_ClearWithValue, v, TAG_DONE)
36#define ami_memory_clear_free(p) FreeVec(p)
39#define ami_memory_clear_free(p) free(p)
44#define ami_memory_itempool_create(s) AllocSysObjectTags(ASOT_ITEMPOOL, \
45 ASOITEM_MFlags, MEMF_PRIVATE, \
46 ASOITEM_ItemSize, s, \
47 ASOITEM_GCPolicy, ITEMGC_AFTERCOUNT, \
48 ASOITEM_GCParameter, 100, \
50#define ami_memory_itempool_delete(p) FreeSysObject(ASOT_ITEMPOOL, p)
51#define ami_memory_itempool_alloc(p,s) ItemPoolAlloc(p)
52#define ami_memory_itempool_free(p,i,s) ItemPoolFree(p,i)
54#define ami_memory_itempool_create(s) ((APTR)1)
55#define ami_memory_itempool_delete(p) ((void)0)
56#define ami_memory_itempool_alloc(p,s) malloc(s)
57#define ami_memory_itempool_free(p,i,s) free(i)
void * ami_memory_clear_alloc(size_t size, UBYTE value)
void ami_memory_fini(struct Interrupt *memhandler)
void ami_memory_slab_dump(BPTR fh)
struct Interrupt * ami_memory_init(void)