1FLS(9)                     Basic C Library Functions                    FLS(9)
2
3
4

NAME

6       fls - find last set bit in word
7

SYNOPSIS

9       int fls(int x);
10

ARGUMENTS

12       x
13           the word to search
14

DESCRIPTION

16       This is defined in a similar way as the libc and compiler builtin ffs,
17       but returns the position of the most significant set bit.
18
19       fls(value) returns 0 if value is 0 or the position of the last set bit
20       if value is nonzero. The last (most significant) bit is at position 32.
21
23Kernel Hackers Manual 2.6.       November 2011                          FLS(9)
Impressum