Function bitintr::x86::tbm::blcs
[−]
[src]
pub fn blcs<T: Int>(x: T) -> T
Sets the least significant bit of x
.
If there is no zero bit in x
, it returns x
.
Assembly Instructions
BLCS
:- Description: Set lowest clear bit.
- Architecture: x86.
- Instruction set: TBM.
- Registers: 32/64 bit.
Example
use bitintr::x86::tbm::*; assert_eq!(blcs(0b0101_0001u8), 0b0101_0011u8); assert_eq!(0b1111_1111u8.blcs(), 0b1111_1111u8);