From 0e1617f1e68c9900538296f1186c0e9768d6cb87 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 21 Dec 2021 13:24:33 +0200 Subject: Started allowing higher order allocs --- include/apos/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 -- cgit v1.3