Inline function
Space | User/kernel |
Context | Sync/async/rt-irq |
May block | No |
SPL | Any |
Dynamic memory | No |
#include <ARCH/BSF.H>
static __finline__ int __BSR(unsigned long val);
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.
An index of the most significant bit that is set.