[][src]Function safe_arch::byte_swap_i32

pub fn byte_swap_i32(i: i32) -> i32

Swap the bytes of the given 32-bit value.

assert_eq!(byte_swap_i32(0x0A123456), 0x5634120A);
  • Intrinsic: _bswap
  • Assembly: bswap r32