Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
40
int
41
ffs(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
__ctzsi2
Function · 0.50
prio_dequeue
Function · 0.50
qfq_ffs
Function · 0.50
qfq_slot_scan
Function · 0.50
nat64lsn_find_pg_place
Function · 0.50
controller
Function · 0.50
mac_policy_register
Function · 0.50
mips_ipi_handler
Function · 0.50
bitpos
Function · 0.50
sig_ffs
Function · 0.50
mptable_hyperthread_fixup
Function · 0.50
lapic_timer_set_divisor
Function · 0.50
Calls
no outgoing calls
Tested by
1
controller
Function · 0.40