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