aboutsummaryrefslogtreecommitdiff
path: root/include/apos/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos/utils.h')
-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>