Function bitintr::x86::tbm::blci
[−]
[src]
pub fn blci<T: Int>(x: T) -> T
Sets all bits of x
to 1 except for the least significant zero bit.
If there is no zero bit in x
, it sets all bits.
Assembly instructions
BLCI
:- Description: Isolate lowest clear bit.
- Architecture: x86.
- Instruction set: TBM.
- Registers: 32/64 bit.
Example
use bitintr::x86::tbm::*; assert_eq!(blci(0b0101_0000u8), 0b1111_1110u8); assert_eq!(0b1111_1111u8.blci(), 0b1111_1111u8);