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

Function ffs

freebsd/libkern/ffs.c:40–50  ·  view source on GitHub ↗

* Find First Set bit */

Source from the content-addressed store, hash-verified

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

Callers 15

__ctzsi2Function · 0.50
prio_dequeueFunction · 0.50
qfq_ffsFunction · 0.50
qfq_slot_scanFunction · 0.50
nat64lsn_find_pg_placeFunction · 0.50
controllerFunction · 0.50
mac_policy_registerFunction · 0.50
mips_ipi_handlerFunction · 0.50
bitposFunction · 0.50
sig_ffsFunction · 0.50
lapic_timer_set_divisorFunction · 0.50

Calls

no outgoing calls

Tested by 1

controllerFunction · 0.40