10 /* Minimum alignment required by posix_memalign. */
11 #define DEF_ALIGN sizeof(void*)
13 void *al_malloc(size_t alignment
, size_t size
);
14 void *al_calloc(size_t alignment
, size_t size
);
15 void al_free(void *ptr
);
17 size_t al_get_page_size(void);
20 * Returns non-0 if the allocation function has direct alignment handling.
21 * Otherwise, the standard malloc is used with an over-allocation and pointer
24 int al_is_sane_alignment_allocator(void);
30 #endif /* AL_MALLOC_H */