Function safe_arch::byte_swap_i32 
source · pub fn byte_swap_i32(i: i32) -> i32Expand description
Swap the bytes of the given 32-bit value.
assert_eq!(byte_swap_i32(0x0A123456), 0x5634120A);- Intrinsic: _bswap
- Assembly: bswap r32
pub fn byte_swap_i32(i: i32) -> i32Swap the bytes of the given 32-bit value.
assert_eq!(byte_swap_i32(0x0A123456), 0x5634120A);_bswapbswap r32