Re:Moving away from HDF5
by DiThi on Thursday January 07, 2016 @04:14PM
(#10860818)
IEEE 754 floats don't have different endianess. And as the other comment says, swapping endianess is fast (if ever needed, since most platforms are little endian or hybrid).
[ Parent
| on HN ]
Re:Moving away from HDF5
by ycmbntrthrwaway on Thursday January 07, 2016 @04:26PM
(#10860912)
> IEEE 754 floats don't have different endianess.
The standard does not specify endianness [1]. From the standard point of view float is a sequence of bits. But if you memory-map the file and store float on little-endian machine, you get bytes reversed compared to how it is written in the standard. On big-endian machine sign is stored in the first byte, and on little-endian machine sign is stored in the last byte.