[][src]Trait bitintr::Blsic

pub trait Blsic {
    fn blsic(self) -> Self;
}

Isolate lowest set bit and complement

Required methods

fn blsic(self) -> Self

Clears least significant bit and sets all other bits.

If there is no set bit in self, it sets all the bits.

Instructions

  • BLSIC:
    • Description: Isolate lowest set bit and complement.
    • Architecture: x86.
    • Instruction set: TBM.
    • Registers: 32/64 bit.

Example

assert_eq!(0b0101_0100u8.blsic(), 0b1111_1011u8);
assert_eq!(0b0000_0000u8.blsic(), 0b1111_1111u8);
Loading content...

Implementors

impl Blsic for i8[src]

impl Blsic for i16[src]

impl Blsic for i32[src]

impl Blsic for i64[src]

impl Blsic for u8[src]

impl Blsic for u16[src]

impl Blsic for u32[src]

impl Blsic for u64[src]

Loading content...