3.127. __nv_ffsll

i32 @__nv_ffsll(i64 %x)

Find the position of the least significant bit set to 1 in a 64 bit integer.

Find the position of the first (least significant) bit set to 1 in x, where the least significant bit position is 1.

Returns

Returns a value between 0 and 64 inclusive representing the position of the first bit set.

  • __nv_ffsll(0) returns 0.