Scans the bits in v starting with bit 0, looking for the first set bit.
The bit number of the first bit set. The return value is undefined if v is zero.
assert(bsf(0x21) == 0); assert(bsf(ulong.max << 39) == 39);
See Implementation
Scans the bits in v starting with bit 0, looking for the first set bit.