Back to index

cell-binutils  2.17cvs20070401
Functions
ffs.c File Reference

Go to the source code of this file.

Functions

int ffs (register int valu)

Function Documentation

int ffs ( register int  valu)

Definition at line 14 of file ffs.c.

{
  register int bit;

  if (valu == 0)
    return 0;

  for (bit = 1; !(valu & 1); bit++)
       valu >>= 1;

  return bit;
}