Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beefytech/Beef
/ IsPowerOfTwo
Function
IsPowerOfTwo
IDEHelper/Backend/BeMCContext.cpp:108–111 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
106
}
107
108
static bool IsPowerOfTwo(int64 val)
109
{
110
return (val != 0) && ((val & (val - 1)) == 0);
111
}
112
113
bool BeVTrackingBits::IsSet(int idx)
114
{
Callers
2
DoLegalization
Method · 0.85
DoCodeEmission
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected