Trait bitintr::Blcs [] [src]

pub trait Blcs {
    fn blcs(self) -> Self;
}

Set lowest clear bit

Required Methods

Sets the least significant bit of self.

If there is no zero bit in self, it returns self.

Instructions

  • BLCS:
    • Description: Set lowest clear bit.
    • Architecture: x86.
    • Instruction set: TBM.
    • Registers: 32/64 bit.

Example

assert_eq!(0b0101_0001u8.blcs(), 0b0101_0011u8);
assert_eq!(0b1111_1111u8.blcs(), 0b1111_1111u8);

Implementors