1 # Bug 369722 – prdtoa.c jsnum.h txDouble.h not required IEEE_ARM define on Codesourcery EABI gcc3.4.4 compiler
3 --- mozilla/content/xslt/public/txDouble.h.orig 2006-07-13 17:21:52.000000000 +0300
4 +++ mozilla/content/xslt/public/txDouble.h 2007-10-25 15:01:25.000000000 +0300
5 @@ -58,46 +58,48 @@ fp_except_t oldmask = fpsetmask(~allmask
7 * Stefan Hanske <sh990154@mail.uni-greifswald.de> reports:
8 * ARM is a little endian architecture but 64 bit double words are stored
9 * differently: the 32 bit words are in little endian byte order, the two words
10 * are stored in big endian`s way.
13 #if defined(__arm) || defined(__arm32__) || defined(__arm26__) || defined(__arm__)
15 +#if !defined(__VFP_FP__)
16 +#define FPU_IS_ARM_FPA
20 #if (__GNUC__ == 2 && __GNUC_MINOR__ > 95) || __GNUC__ > 2
22 * This version of the macros is safe for the alias optimizations
23 * that gcc does, but uses gcc-specific extensions.
26 typedef union txdpun {
29 -#if defined(IS_LITTLE_ENDIAN) && !defined(CPU_IS_ARM)
30 +#if defined(IS_LITTLE_ENDIAN) && !defined(FPU_IS_ARM_FPA)
38 #define TX_DOUBLE_HI32(x) (__extension__ ({ txdpun u; u.d = (x); u.s.hi; }))
39 #define TX_DOUBLE_LO32(x) (__extension__ ({ txdpun u; u.d = (x); u.s.lo; }))
43 /* We don't know of any non-gcc compilers that perform alias optimization,
44 * so this code should work.
47 -#if defined(IS_LITTLE_ENDIAN) && !defined(CPU_IS_ARM)
48 +#if defined(IS_LITTLE_ENDIAN) && !defined(FPU_IS_ARM_FPA)
49 #define TX_DOUBLE_HI32(x) (((PRUint32 *)&(x))[1])
50 #define TX_DOUBLE_LO32(x) (((PRUint32 *)&(x))[0])
52 #define TX_DOUBLE_HI32(x) (((PRUint32 *)&(x))[0])
53 #define TX_DOUBLE_LO32(x) (((PRUint32 *)&(x))[1])