The return value is undefined if v is zero.
bsr
fn
int bsr(uint v) pureScans the bits in v from the most significant bit to the least significant bit, looking for the first set bit.
Returns
The bit number of the first bit set.
fn
int bsr(ulong v) pureditto