FFS(3C) | Standard C Library Functions | FFS(3C) |
int ffs(int i);
int ffsl(ong i);
int ffsll(long long i);
int fls(int i);
int flsl(long i);
int flsll(long long i);
The fls(), flsl(), and flsll() functions find the last bit set (beginning with the least significant bit) and return the index of that bit. Bits are numbered starting at one (the least significant bit).
The fls(), flsl(), and flsll() functions return the index of the last bit set. If i is 0, then they return 0.
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
MT-Level | MT-Safe |
May 21, 2015 |