Trait bitintr::Blci
[−]
[src]
pub trait Blci { fn blci(self) -> Self; }
Isolate lowest clear bit
Required Methods
fn blci(self) -> Self
Sets all bits of self
to 1 except for the least significant zero bit.
If there is no zero bit in self
, it sets all bits.
Instructions
BLCI
:- Description: Isolate lowest clear bit.
- Architecture: x86.
- Instruction set: TBM.
- Registers: 32/64 bit.
Example
assert_eq!(0b0101_0000u8.blci(), 0b1111_1110u8); assert_eq!(0b1111_1111u8.blci(), 0b1111_1111u8);
Implementors
impl Blci for u8
impl Blci for u16
impl Blci for u32
impl Blci for u64
impl Blci for i8
impl Blci for i16
impl Blci for i32
impl Blci for i64