aboutsummaryrefslogtreecommitdiff
path: root/include/apos/mem.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 11:23:29 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 11:23:29 +0300
commite148f38dc937c34b222ba8df8612b3fa2b6bc349 (patch)
treec51f045c6632b2073cb0e3183bd9d3b559ccd228 /include/apos/mem.h
parent360c18fcbe228220e5c9799fb30b2032982c06cf (diff)
downloadkmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.tar.gz
kmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.zip
modify formatting rules
Diffstat (limited to 'include/apos/mem.h')
-rw-r--r--include/apos/mem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/apos/mem.h b/include/apos/mem.h
index 1486400..af0ac89 100644
--- a/include/apos/mem.h
+++ b/include/apos/mem.h
@@ -11,7 +11,7 @@
#define MM_OINFO_WIDTH (sizeof(mm_info_t) * 8)
-#define pnum_to_index(pnum, order) \
+#define pnum_to_index(pnum, order) \
(((pnum) >> __o_offset(order)) & (__o_width(order) - 1))
#define pm_to_index(paddr, \
order) (pnum_to_index(pm_to_pnum(paddr), (order)))
@@ -43,8 +43,8 @@
RAM_BASE)
#define __page(x) ((x) / BASE_PAGE_SIZE)
#define __addr(x) ((x)*BASE_PAGE_SIZE)
-#define __pages(x) \
- (is_aligned((x), BASE_PAGE_SIZE) ? __page((x)) : \
+#define __pages(x) \
+ (is_aligned((x), BASE_PAGE_SIZE) ? __page((x)) : \
__page((x) + BASE_PAGE_SIZE))
#define __bytes(x) (__addr(x))