Reformat base

This commit is contained in:
2026-01-02 00:29:24 +00:00
parent ab91bb2c9e
commit 54691a8ede
9 changed files with 308 additions and 306 deletions

View File

@@ -11,8 +11,8 @@ void *wapp_mem_util_align_forward(void *ptr, u64 alignment) {
wapp_debug_assert(ptr != NULL, "`ptr` should not be NULL");
wapp_runtime_assert(is_power_of_two(alignment), "`alignment` value is not a power of two");
uptr p = (uptr)ptr;
uptr align = (uptr)alignment;
uptr p = (uptr)ptr;
uptr align = (uptr)alignment;
// Similar to p % align, but it's a faster implementation that works fine
// because align is guaranteed to be a power of 2