swap_bytes

swap_bytes

Functions

#define swap_bytes_16()
#define swap_bytes_32()
#define swap_bytes_double()
#define swap_bytes_ushort()
#define reverse_ushort()
#define swap_bytes_short()
#define reverse_short()
#define swap_bytes_uint()
#define reverse_uint()
#define swap_bytes_int()
#define reverse_int()
#define swap_bytes_float()
#define reverse_float()
#define reverse_double()

Description

Functions

swap_bytes_16()

#define swap_bytes_16(from, to) do { (to) = bswap_16(from); } while (0)

swap_bytes_32()

#define swap_bytes_32(from, to) do { (to) = bswap_32(from); } while (0)

swap_bytes_double()

#define             swap_bytes_double(from, to)

swap_bytes_ushort()

#define swap_bytes_ushort(from, to) swap_bytes_16(from, to)

reverse_ushort()

#define reverse_ushort(x) swap_bytes_16(x, x)

swap_bytes_short()

#define             swap_bytes_short(from, to)

reverse_short()

#define             reverse_short(x)

swap_bytes_uint()

#define swap_bytes_uint(from, to) swap_bytes_32(from, to)

reverse_uint()

#define reverse_uint(x) swap_bytes_32(x, x)

swap_bytes_int()

#define             swap_bytes_int(from, to)

reverse_int()

#define             reverse_int(x)

swap_bytes_float()

#define             swap_bytes_float(from, to)

reverse_float()

#define             reverse_float(x)

reverse_double()

#define reverse_double(x) swap_bytes_double(x, x)

Types and Values