aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-02-27 20:43:16 -0800
committerChris Robinson <[email protected]>2017-02-27 20:43:16 -0800
commit45d6c34015a5dc971d1e3ca095ad758339c46441 (patch)
tree12ee5ba924f7f56f5eb4ab934649df145a55f67a /include
parenta9610b3607e8dd23f731b614c3b0761c38cb36a8 (diff)
Avoid standard malloc for buffer queue entries
Diffstat (limited to 'include')
-rw-r--r--include/almalloc.h3
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);