diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-23 20:59:23 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-23 21:10:44 +0300 |
| commit | d4c420689b1872f6fb22f421dfd27704ee94951a (patch) | |
| tree | c3b1921c7bb1035edb7211e4547d3088dac80778 /include/apos/mem.h | |
| parent | 38c7c94bcd131290dcbae110dfb33b0b78c99d90 (diff) | |
| download | kmi-d4c420689b1872f6fb22f421dfd27704ee94951a.tar.gz kmi-d4c420689b1872f6fb22f421dfd27704ee94951a.zip | |
ran clang-format
Diffstat (limited to 'include/apos/mem.h')
| -rw-r--r-- | include/apos/mem.h | 4 |
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]; |
