diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-29 11:23:29 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-29 11:23:29 +0300 |
| commit | e148f38dc937c34b222ba8df8612b3fa2b6bc349 (patch) | |
| tree | c51f045c6632b2073cb0e3183bd9d3b559ccd228 /include/apos/mem.h | |
| parent | 360c18fcbe228220e5c9799fb30b2032982c06cf (diff) | |
| download | kmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.tar.gz kmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.zip | |
modify formatting rules
Diffstat (limited to 'include/apos/mem.h')
| -rw-r--r-- | include/apos/mem.h | 6 |
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)) |
