bsr

fnint bsr(uint v) pure

Scans 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.

The return value is undefined if v is zero.

fnint bsr(ulong v) pure

ditto