Trait bitintr::Blsr
[−]
[src]
pub trait Blsr { fn blsr(self) -> Self; }
Resets lowest set bit.
Required Methods
fn blsr(self) -> Self
Resets the lowest set bit of self
.
Panics
If self
is zero the behavior is undefined. Panics if -C debug-assertions=1
.
Instructions
BLSR
:- Description: Reset lowest set bit.
- Architecture: x86.
- Instruction set: BMI.
- Registers: 32/64 bit.
Example
assert_eq!(0b0011_0000u8.blsr(), 0b0010_0000u8);
Implementors
impl Blsr for u8
impl Blsr for u16
impl Blsr for u32
impl Blsr for u64
impl Blsr for i8
impl Blsr for i16
impl Blsr for i32
impl Blsr for i64