MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / cntlzd

Function cntlzd

src/dolphin/src/vi/vi.c:87–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85static u32 getCurrentFieldEvenOdd();
86
87inline int cntlzd(u64 bit)
88{
89 u32 hi, lo;
90 int value;
91
92 hi = (u32)(bit >> 32);
93 lo = (u32)(bit & 0xFFFFFFFF);
94 value = __cntlzw(hi);
95
96 if (value < 32)
97 {
98 return value;
99 }
100
101 return (32 + __cntlzw(lo));
102}
103
104inline BOOL VISetRegs(void)
105{

Callers 2

VISetRegsFunction · 0.85
VIFlushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected