1FLS(9) Basic C Library Functions FLS(9)
23
4
NAME
6fls - find last set bit in word
7
SYNOPSIS
9int fls(int x);
10
ARGUMENTS
12x
13the word to search
14
DESCRIPTION
16This is defined in a similar way as the libc and compiler builtin ffs,
17but returns the position of the most significant set bit.
1819
fls(value) returns 0 if value is 0 or the position of the last set bit
20if value is nonzero. The last (most significant) bit is at position 32.
21
COPYRIGHT
23Kernel Hackers Manual 3.10 June 2019 FLS(9)