Interface __BSR_CONST

Preprocessor macro expanding to an expression

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

#include <ARCH/BSR.H>

x = __BSR_CONST(val);

Description

The functionality of this macro is identical to __BSR, 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 most significant bit that is set.

See also

__BSR, __BSF_CONST