pike.git/
src/
pike_memory.h
Branch:
Tag:
Non-build tags
All tags
No tags
2013-08-01
2013-08-01 17:02:42 by Arne Goedeke <el@laramies.com>
aa432ad1baea4f89ea7088a52d1be7aab9a45cc6 (
4
lines) (+
4
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
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);