Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
42
using namespace basist;
43
44
inline bool isPow2(uint32_t x) { return x && ((x & (x - 1U)) == 0U); }
45
46
inline bool isPow2(uint64_t x) { return x && ((x & (x - 1U)) == 0U); }
47
Callers
1
ktxTexture2_TranscodeBasis
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected