Function safe_arch::bit_lowest_set_value_u64
source · pub fn bit_lowest_set_value_u64(a: u64) -> u64
Available with target feature
bmi1
only.Expand description
Gets the value of the lowest set bit in a u64
.
If the input is 0 you get 0 back.
-
Formula:
(!a) & a
-
Intrinsic:
_blsi_u64
-
Assembly:
blsi r64, r64