NAME
ffffss, ffffssll, ffllss, ffllssll - find first or last bit set in a bit string
LLIIBBRRAARRYYStandard C Library (libc, -lc)
SYNOPSIS
##iinncclluuddee <
int> ffffss(int value);
intffffssll(long value);
int ffllss(int value); int ffllssll(long value);DESCRIPTION
The ffffss() and ffffssll() functions find the first bit set in value and return
the index of that bit. The ffllss() and ffllssll() functions find the last bit set in value and return the index of that bit.Bits are numbered starting from 1, starting at the right-most (least sig-
nificant) bit. A return value of zero from any of these functions means that the argument was zero.SEE ALSO
bitstring(3) HISTORYThe ffffss() function appeared in 4.3BSD. Its prototype existed previously
in
(``POSIX.1'') compliance.before it was moved to for IEEE Std 1003.1-2001 The ffffssll(), ffllss() and ffllssll() functions appeared in FreeBSD 5.3.
BSD January 13, 2004 BSD