Interface __BSF_CONST

Preprocessor macro expanding to an expression

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

#include <ARCH/BSF.H>

x = __BSF_CONST(val);

Description

The functionality of this macro is identical to __BSF, except that it takes constant argument and returns constant expression. It is usefull if the value will be used at a place where constant expression is required, such as an array size.

Arguments

Returns

An index of the least significant bit that is set.

See also

__BSF, __BSR_CONST