MCPcopy Create free account
hub / github.com/beefytech/Beef / GetNumLowZeroBits

Function GetNumLowZeroBits

IDEHelper/Compiler/BfModuleTypeUtils.cpp:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24//////////////////////////////////////////////////////////////////////////
25
26int32 GetNumLowZeroBits(int32 n)
27{
28 if (n == 0)
29 return 32;
30
31 int i = 0;
32 while ((n & 1) == 0)
33 {
34 n = (int32)((uint32)n >> 1);
35 i++;
36 }
37 return i;
38}
39
40//////////////////////////////////////////////////////////////////////////
41

Callers 1

DoPopulateTypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected