1 /* ffs.c - find first set bit */
2 /* ffs() is defined by Single Unix Specification. */
8 unsigned int x
= (unsigned int)arg
;
16 #if 32 < SIZEOF_INT * CHAR_BIT
17 if ((x
& 0xffffffff) == 0) {
23 if ((x
& 0xffff) == 0) {
28 if ((x
& 0xff) == 0) {