pike.git/
src/
pike_memory.h
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:23:56 by Arne Goedeke <el@laramies.com>
e15c4863f0a01bfa787089ad96ed96dafed137d0 (
4
lines) (+
4
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
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);