diff options
author | Chris Robinson <[email protected]> | 2017-02-27 20:43:16 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-27 20:43:16 -0800 |
commit | 45d6c34015a5dc971d1e3ca095ad758339c46441 (patch) | |
tree | 12ee5ba924f7f56f5eb4ab934649df145a55f67a /include/almalloc.h | |
parent | a9610b3607e8dd23f731b614c3b0761c38cb36a8 (diff) |
Avoid standard malloc for buffer queue entries
Diffstat (limited to 'include/almalloc.h')
-rw-r--r-- | include/almalloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/almalloc.h b/include/almalloc.h index 355db795..8eadb5b3 100644 --- a/include/almalloc.h +++ b/include/almalloc.h @@ -7,6 +7,9 @@ extern "C" { #endif +/* Minimum alignment required by posix_memalign. */ +#define DEF_ALIGN sizeof(void*) + void *al_malloc(size_t alignment, size_t size); void *al_calloc(size_t alignment, size_t size); void al_free(void *ptr); |