Christian Thalinger wrote:
+#if defined(__IEEE_BYTES_LITTLE_ENDIAN) + /* On little endian ARM processors when using FPA, word order of + doubles is still big endian. So take that into account here. When + using VFP, word order of doubles follows byte order. */ + +#define SWAP_DOUBLE(a) (((a) << 32) | (((a) >> 32) & 0x00000000ffffffff)) + + val.j = SWAP_DOUBLE(val.j); +#endif +
Could instead you just have a configure test for byte order? Not sure if __IEEE_BYTES_LITTLE_ENDIAN is going to cover all possible cases. Of course, since you've got a patch and I don't feel free to ignore me :-) -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com