Function bitintr::arm::v6::rev [] [src]

pub fn rev<T: Int>(x: T) -> T

Reverse the order of the bytes.

Keywords: count leading sign bits, count leading ones, count leading bits set.

Assembly Instructions

Example

use bitintr::arm::v6::*;

let n = 0b1111_1111_1100_1010u16;
let m = 0b1100_1010_1111_1111u16;

assert_eq!(n.rev(), m);
assert_eq!(m.rev(), n);