From 2e908a7be31558cc98a9f0e97556e49ee5748c16 Mon Sep 17 00:00:00 2001 From: nodist Date: Mon, 28 Sep 2026 16:15:39 -0400 Subject: inline some queue fns --- include/kpl/macro.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/kpl/macro.h') 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)) -- cgit v1.2.3