MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / isPow2

Function isPow2

lib/basis_transcode.cpp:44–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42using namespace basist;
43
44inline bool isPow2(uint32_t x) { return x && ((x & (x - 1U)) == 0U); }
45
46inline bool isPow2(uint64_t x) { return x && ((x & (x - 1U)) == 0U); }
47

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected