aboutsummaryrefslogtreecommitdiff
path: root/include/kpl/macro.h
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-09-28 16:15:39 -0400
committernodist <kevin.comas.git@gmail.com>2026-09-28 16:15:39 -0400
commit2e908a7be31558cc98a9f0e97556e49ee5748c16 (patch)
tree3c8d8a7123d46b5e2b8f6a5c9943faf4c64c2efd /include/kpl/macro.h
parent9a82127c476bf99556bbc69e181025afcba19d26 (diff)
inline some queue fns
Diffstat (limited to 'include/kpl/macro.h')
-rw-r--r--include/kpl/macro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kpl/macro.h b/include/kpl/macro.h
index cdcaa1f..e0b59e5 100644
--- a/include/kpl/macro.h
+++ b/include/kpl/macro.h
@@ -11,3 +11,5 @@
#define KPL_PRINT_TODO(MESSAGE) _KPL_PRINT_(LIGHT_YELLOW, MESSAGE)
#define KPL_PRINT_ERROR(MESSAGE) _KPL_PRINT_(LIGHT_RED, MESSAGE)
+
+#define KPL_PAGE_SIZE_ROUND(SIZE) ((SIZE + (getpagesize() - 1)) & ~(getpagesize() - 1))