Trait bitintr::Blcs
[−]
[src]
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);
Implementors
impl Blcs for u8
impl Blcs for u16
impl Blcs for u32
impl Blcs for u64
impl Blcs for i8
impl Blcs for i16
impl Blcs for i32
impl Blcs for i64