aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-21 13:24:33 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-21 13:24:33 +0200
commit0e1617f1e68c9900538296f1186c0e9768d6cb87 (patch)
tree706ea8942cc2ddf290bc72760e81bc8569d31995 /include
parent41c405fdb18b139bbde475063230e14a59304ef6 (diff)
downloadkmi-0e1617f1e68c9900538296f1186c0e9768d6cb87.tar.gz
kmi-0e1617f1e68c9900538296f1186c0e9768d6cb87.zip
Started allowing higher order allocs
Diffstat (limited to 'include')
-rw-r--r--include/apos/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/apos/utils.h b/include/apos/utils.h
index 91b8535..318ba0a 100644
--- a/include/apos/utils.h
+++ b/include/apos/utils.h
@@ -29,6 +29,7 @@
((type *)((char *)(ptr) - offsetof(type, member)))
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#define ALIGNED(x, a) ((x) % a == 0)
#include <apos/types.h>