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

NAME

6       ffs - find first set bit in word
7

SYNOPSIS

9       int ffs(int x);
10

ARGUMENTS

12       x
13           the word to search
14

DESCRIPTION

16       This is defined the same way as the libc and compiler builtin ffs
17       routines, therefore differs in spirit from the other bitops.
18
19       ffs(value) returns 0 if value is 0 or the position of the first set bit
20       if value is nonzero. The first (least significant) bit is at position
21       1.
22
24Kernel Hackers Manual 2.6.       November 2011                          FFS(9)
Impressum