Function bitintr::bmi::blsr
[−]
[src]
pub fn blsr<T: Int>(x: T) -> T
Resets the lowest set bit of x
.
Panics
If x
is zero the behavior is undefined (panics in debug builds).
Intrinsic (when available BMI1)
BLSR
: Reset lowest set bit
(supports 32/64 bit registers).
Example
use bitintr::bmi::blsr; assert_eq!(blsr(0b0011_0000u8), 0b0010_0000u8);