From d4c420689b1872f6fb22f421dfd27704ee94951a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 23 Apr 2022 20:59:23 +0300 Subject: ran clang-format --- include/apos/mem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/apos/mem.h') 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]; -- cgit v1.3