Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/defold/defold
/ IsPowerOfTwo
Function
IsPowerOfTwo
engine/render/src/render/font/fontmap.cpp:514–517 ·
view source on GitHub ↗
From Box2D
Source
from the content-addressed store, hash-verified
512
513
// From Box2D
514
inline bool IsPowerOfTwo(uint32_t x)
515
{
516
return x > 0 && (x & (x - 1)) == 0;
517
}
518
519
// From Box2D
520
inline uint32_t NextPowerOfTwo(uint32_t x)
Callers
1
ResetCache
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected