Move is_power_of_two to misc_utils

This commit is contained in:
2026-01-02 19:19:25 +00:00
parent 91138f9239
commit ebf16c6ba3
2 changed files with 4 additions and 3 deletions

View File

@@ -47,6 +47,8 @@ BEGIN_C_LINKAGE
) + 1 \
)
#define wapp_is_power_of_two(NUM) ((NUM & (NUM - 1)) == 0)
#ifdef WAPP_PLATFORM_CPP
END_C_LINKAGE