Portable tools to determine endianness (compile and run time), efficient and optimized swapping byte order, and convert values between host and little-/big-endian byte order.