aboutsummaryrefslogtreecommitdiff
path: root/include/kpl/macro.h
diff options
context:
space:
mode:
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))