MCPcopy 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
108static bool IsPowerOfTwo(int64 val)
109{
110 return (val != 0) && ((val & (val - 1)) == 0);
111}
112
113bool BeVTrackingBits::IsSet(int idx)
114{

Callers 2

DoLegalizationMethod · 0.85
DoCodeEmissionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected