aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-29 00:44:58 -0700
committerChris Robinson <[email protected]>2016-03-29 00:44:58 -0700
commit2ccc1d1d8a6ecc5c025e99518038fcc7a001d949 (patch)
tree9e9c2c60e8215c3431a2f3065639e69b2a9ce16c /include
parentca309e685e88244c3b380acd5eabbc65364665b2 (diff)
Move the aligned malloc functions to the common lib
Diffstat (limited to 'include')
-rw-r--r--include/almalloc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/almalloc.h b/include/almalloc.h
new file mode 100644
index 00000000..355db795
--- /dev/null
+++ b/include/almalloc.h
@@ -0,0 +1,18 @@
+#ifndef AL_MALLOC_H
+#define AL_MALLOC_H
+
+#include <stddef.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *al_malloc(size_t alignment, size_t size);
+void *al_calloc(size_t alignment, size_t size);
+void al_free(void *ptr);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* AL_MALLOC_H */