Function safe_arch::bit_lowest_set_reset_u32
source ยท pub fn bit_lowest_set_reset_u32(a: u32) -> u32
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_u32
-
Assembly:
blsr r32, r32