MCPcopy Create free account
hub / github.com/F-Stack/f-stack / flsll

Function flsll

freebsd/libkern/flsll.c:39–49  ·  view source on GitHub ↗

* Find Last Set bit */

Source from the content-addressed store, hash-verified

37 * Find Last Set bit
38 */
39int
40flsll(long long mask)
41{
42 int bit;
43
44 if (mask == 0)
45 return (0);
46 for (bit = 1; mask != 1; bit++)
47 mask = (unsigned long long)mask >> 1;
48 return (bit);
49}

Callers 3

highbit64Function · 0.50
__clzdi2Function · 0.50
mul64_by_fractionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected