diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-28 16:15:39 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-28 16:15:39 -0400 |
| commit | 2e908a7be31558cc98a9f0e97556e49ee5748c16 (patch) | |
| tree | 3c8d8a7123d46b5e2b8f6a5c9943faf4c64c2efd /include/kpl/macro.h | |
| parent | 9a82127c476bf99556bbc69e181025afcba19d26 (diff) | |
inline some queue fns
Diffstat (limited to 'include/kpl/macro.h')
| -rw-r--r-- | include/kpl/macro.h | 2 |
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)) |
