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