Move is_power_of_two to misc_utils
This commit is contained in:
1 parent
91138f9239
commit
ebf16c6ba3
2 files changed
+4
-3
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user