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

Function flsl

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

* Find Last Set bit */

Source from the content-addressed store, hash-verified

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

Callers 13

highbitFunction · 0.50
init_param2Function · 0.50
round_freqFunction · 0.50
fdlastfile_singleFunction · 0.50
flssbtFunction · 0.50
statfs_scale_blocksFunction · 0.50
malloc_domainset_alignedFunction · 0.50
vmem_periodicFunction · 0.50
vmem_initFunction · 0.50
vm_phys_enqueue_contigFunction · 0.50
vm_phys_alloc_seg_contigFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected