20 Mar
2015
20 Mar
'15
3:43 p.m.
Beman Dawes wrote:
The most conservative approach is to remove the return-by-value reverse functions, and note in the docs that only in-place reverse is available for FP. That will give us more time to determine if return-by-value endianness reverse is valid for floating point.
Even if everything round-trips correctly on all compilers we care about, returning "wrong endianness" by value is not standard conforming for any type, not just float. int, for instance, is allowed to have padding bits and trap representations, or to not preserve the sign bit of negative zero.