Trait bitintr::Blsr [] [src]

pub trait Blsr {
    fn blsr(self) -> Self;
}

Resets lowest set bit.

Required Methods

Resets the lowest set bit of self.

Panics

If self is zero the behavior is undefined. Panics if -C debug-assertions=1.

Instructions

  • BLSR:
    • Description: Reset lowest set bit.
    • Architecture: x86.
    • Instruction set: BMI.
    • Registers: 32/64 bit.

Example

assert_eq!(0b0011_0000u8.blsr(), 0b0010_0000u8);

Implementors