diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-21 13:24:33 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-21 13:24:33 +0200 |
| commit | 0e1617f1e68c9900538296f1186c0e9768d6cb87 (patch) | |
| tree | 706ea8942cc2ddf290bc72760e81bc8569d31995 /include/apos/utils.h | |
| parent | 41c405fdb18b139bbde475063230e14a59304ef6 (diff) | |
| download | kmi-0e1617f1e68c9900538296f1186c0e9768d6cb87.tar.gz kmi-0e1617f1e68c9900538296f1186c0e9768d6cb87.zip | |
Started allowing higher order allocs
Diffstat (limited to 'include/apos/utils.h')
| -rw-r--r-- | include/apos/utils.h | 1 |
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> |
