Penguin

FFS

FFS

NAME SYNOPSIS DESCRIPTION RETURN VALUE CONFORMING TO


NAME

ffs - find first bit set in a word

SYNOPSIS

#include i);

DESCRIPTION

The ffs() function returns the position of the first bit set in the word i. The least significant bit is position 1 and the most significant position 32.

RETURN VALUE

The ffs() function returns the position of the first bit set, or 0 if no bits are set.

CONFORMING TO

BSD 4.3, SUSv2

According to SUSv2, this function is defined in


This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.