Branch: Tag:

2014-12-04

2014-12-04 19:23:56 by Arne Goedeke <el@laramies.com>

block_allocator: added support for alignment

182:   PMOD_EXPORT void debug_xfree(void *mem);   PMOD_EXPORT void *debug_xrealloc(void *m, size_t s) MALLOC_FUNCTION;   PMOD_EXPORT void *debug_xcalloc(size_t n, size_t s) MALLOC_FUNCTION; + PMOD_EXPORT void *aligned_alloc(size_t size, size_t alignment) MALLOC_FUNCTION;    -  + #define PIKE_ALIGNTO(x, a) (((x) + (a)-1) & ~((a)-1)) +    PMOD_EXPORT void *mexec_alloc(size_t sz) MALLOC_FUNCTION;   PMOD_EXPORT void *mexec_realloc(void *ptr, size_t sz) MALLOC_FUNCTION;   PMOD_EXPORT void mexec_free(void *ptr);