[][src]Trait bitintr::Blcs

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

Set lowest clear bit

Required methods

fn blcs(self) -> Self

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);
Loading content...

Implementors

impl Blcs for i8[src]

impl Blcs for i16[src]

impl Blcs for i32[src]

impl Blcs for i64[src]

impl Blcs for u8[src]

impl Blcs for u16[src]

impl Blcs for u32[src]

impl Blcs for u64[src]

Loading content...