Interface __BSR

Inline function

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

#include <ARCH/BSF.H>

static __finline__ int __BSR(unsigned long val);

Description

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

Arguments

Returns

An index of the most significant bit that is set.

See also

__BSF, __BSR_CONST