X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fffs.c;h=603cbe8ed994536776e2031b7afa6ca521e54ecc;hb=f01e6568a892beb841da00fcb18556fe75e74e39;hp=8ffb03e7c5e2ab762e43797c4a3a36057b28b770;hpb=7b78baae9b0beeee74aa508c150c35b4f9f35982;p=binutils-gdb.git diff --git a/libiberty/ffs.c b/libiberty/ffs.c index 8ffb03e7c5e..603cbe8ed99 100644 --- a/libiberty/ffs.c +++ b/libiberty/ffs.c @@ -1,20 +1,17 @@ /* ffs -- Find the first bit set in the parameter -NAME - ffs -- Find the first bit set in the parameter +@deftypefn Supplemental int ffs (int @var{valu}) -SYNOPSIS - int ffs (int valu) +Find the first (least significant) bit set in @var{valu}. Bits are +numbered from right to left, starting with bit 1 (corresponding to the +value 1). If @var{valu} is zero, zero is returned. -DESCRIPTION - Find the first bit set in the parameter. Bits are numbered from - right to left, starting with bit 1. +@end deftypefn */ int -ffs (valu) - register int valu; +ffs (register int valu) { register int bit;