Interface __BSF

Inline function

SpaceUser/kernel
ContextSync/async/rt-irq
May blockNo
SPLAny
Dynamic memoryNo

#include <ARCH/BSF.H>

static __finline__ int __BSF(unsigned long val);

Description

This function returns the index of the least significant non-zero bit in val. Bits are indexed from 0, the least significant bit has index 0.

Arguments

Returns

An index of the least significant bit that is set.

See also

__BSR, __BSF_CONST