devela::_dep::safe_arch

Function byte_swap_i32

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

Swap the bytes of the given 32-bit value.

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