__FFS

Section: Basic C Library Functions (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

__ffs - find first set bit in word  

SYNOPSIS

unsigned long __ffs(unsigned long word);
 

ARGUMENTS

word

The word to search
 

DESCRIPTION

Undefined if no bit exists, so code should check against 0 first.  

COPYRIGHT