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

Function ffsll

freebsd/libkern/ffsll.c:38–48  ·  view source on GitHub ↗

* Find First Set bit */

Source from the content-addressed store, hash-verified

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

Callers 4

__ctzdi2Function · 0.50
bitposFunction · 0.50
mlx5_regexdev_enqueueFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected