pub fn bit_lowest_set_reset_u64(a: u64) -> u64
Available with target feature bmi1 only.
Expand description

Resets (clears) the lowest set bit.

If the input is 0 you get 0 back.

  • Formula: (a - 1) & a

  • Intrinsic: _blsr_u64

  • Assembly: blsr r64, r64