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

Function fls

freebsd/libkern/fls.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
41fls(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

zfs_statvfsFunction · 0.50
__clzsi2Function · 0.50
bit_ffs_area_atFunction · 0.50
bit_ffc_area_atFunction · 0.50
jz4780_pic_intrFunction · 0.50
apb_filterFunction · 0.50
mips_pic_intrFunction · 0.50
cpu_intrFunction · 0.50
mtk_pic_intrFunction · 0.50
mtk_pic_intrFunction · 0.50
mtk_spi_transferFunction · 0.50
mtk_gic_intrFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected