devela::_dep::safe_arch

Function byte_swap_i64

pub fn byte_swap_i64(i: i64) -> i64 
Available on crate feature dep_safe_arch only.
Expand description

Swap the bytes of the given 64-bit value.

assert_eq!(byte_swap_i64(0x0A123456_789ABC01), 0x01BC9A78_5634120A);
  • Intrinsic: _bswap64
  • Assembly: bswap r64