31 Jan
2015
31 Jan
'15
5:42 a.m.
On Fri, Jan 30, 2015 at 12:17 PM, Cliff Green
I'm still not sure what to suggest to Beman for the Endian library wrt to float and double API's, specially as this library could or should be the basis for a standardization proposal. Integers are completely safe and well-defined for swapping - all bit patterns form valid integers and swapping bytes never result in "special" hardware processing.
I don't think that it actually guaranteed (it is only guaranteed for unsigned char). It is fine for 2s-compliment, but for endian in the standard, other integer representations need to be taken into account. Tony