/* FUNCTION <>---find first bit set in a word INDEX ffs SYNOPSIS #include int ffs(int <[word]>); DESCRIPTION <> returns the first bit set in a word. RETURNS <> returns 0 if <[c]> is 0, 1 if <[c]> is odd, 2 if <[c]> is a multiple of 2, etc. PORTABILITY <> is not ANSI C. No supporting OS subroutines are required. */ #include int ffs(int i) { return (__builtin_ffs(i)); }