| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <string.h> int ffs(int _mask); |
This function find the first (least significant) bit set in the input value.
Bit position (1..32) of the least significant set bit, or zero if the input value is zero.
| ANSI/ISO C | No |
| POSIX | No |
ffs(0) = 0 ffs(1) = 1 ffs(5) = 1 ffs(96) = 6 |