summaryrefslogtreecommitdiff
path: root/packages/linux/openslug-kernel-2.6.9/double_cpdo.patch
blob: 4069358db8e84efafc97bca9087ffb87b8291099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- linux-2.6.9-rc3-ds1.commit/arch/arm/nwfpe/double_cpdo.c	2004-08-14 07:36:11.000000000 +0200
+++ linux-2.6.9-rc3-ds1.snap/arch/arm/nwfpe/double_cpdo.c	2004-10-10 20:29:15.514512796 +0200
@@ -75,7 +75,11 @@
 	union float64_components u;
 
 	u.f64 = rFm;
+#ifdef __ARMEB__
+	u.i[0] ^= 0x80000000;
+#else
 	u.i[1] ^= 0x80000000;
+#endif
 
 	return u.f64;
 }
@@ -85,7 +89,11 @@
 	union float64_components u;
 
 	u.f64 = rFm;
+#ifdef __ARMEB__
+	u.i[0] &= 0x7fffffff;
+#else
 	u.i[1] &= 0x7fffffff;
+#endif
 
 	return u.f64;
 }