Function bitintr::arm::v7::rbit
[−]
[src]
pub fn rbit<T: Int>(x: T) -> T
Reverse the bit order.
Assembly Instructions
RBIT
:- Description: Reverse Bits reverses the bit order in a register.
- Architecture: ARMv7, ARMv8.
- Registers: 32 (v7) / 64 (v8) bits.
Example
use bitintr::arm::v7::*; assert_eq!(rbit(0b0011_0001u8), 0b1000_1100u8); assert_eq!(rbit(0b11111111u32), 0b11111111_00000000_00000000_00000000u32);