only byteswap on little endian systems