Preprocessor macro expanding to an expression
Space | User/kernel |
Context | Sync/async/rt-irq |
May block | No |
SPL | Any |
Dynamic memory | No |
#include <ARCH/BSF.H>
x = __BSF_CONST(val);
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.
An index of the least significant bit that is set.