The return value is undefined if v is zero.
bsf
fn
int bsf(uint v) pureScans the bits in v starting with bit 0, looking for the first set bit.
Returns
The bit number of the first bit set.
fn
int bsf(ulong v) pureditto