MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / isPow2

Function isPow2

TheForceEngine/TFE_System/math.h:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13
14 inline bool isPow2(u32 x)
15 {
16 return (x > 0) && (x & (x - 1)) == 0;
17 }
18
19 inline bool isPow2(s32 x)
20 {

Callers 1

filterTexturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected