aboutsummaryrefslogtreecommitdiff
path: root/include/apos/mem.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-04-23 20:59:23 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-04-23 21:10:44 +0300
commitd4c420689b1872f6fb22f421dfd27704ee94951a (patch)
treec3b1921c7bb1035edb7211e4547d3088dac80778 /include/apos/mem.h
parent38c7c94bcd131290dcbae110dfb33b0b78c99d90 (diff)
downloadkmi-d4c420689b1872f6fb22f421dfd27704ee94951a.tar.gz
kmi-d4c420689b1872f6fb22f421dfd27704ee94951a.zip
ran clang-format
Diffstat (limited to 'include/apos/mem.h')
-rw-r--r--include/apos/mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/apos/mem.h b/include/apos/mem.h
index be44104..ece8ee3 100644
--- a/include/apos/mem.h
+++ b/include/apos/mem.h
@@ -35,8 +35,8 @@
#define __page(x) ((x) / BASE_PAGE_SIZE)
#define __addr(x) ((x)*BASE_PAGE_SIZE)
#define __pages(x) \
- (aligned((x), BASE_PAGE_SIZE) ? __page((x)) : \
- __page((x) + BASE_PAGE_SIZE))
+ (is_aligned((x), BASE_PAGE_SIZE) ? __page((x)) : \
+ __page((x) + BASE_PAGE_SIZE))
#define __bytes(x) (__addr(x))
extern size_t __mm_shifts[10];