[ARM] 3118/1: fix and reenable nwfpe extended precision emulation for big-endian
[firefly-linux-kernel-4.4.55.git] / arch / arm / nwfpe / softfloat.h
index 1301d97e037f213f6f71444a97916ee50e752755..978c699673c69e65ccb2957d09957597ac32942f 100644 (file)
@@ -51,12 +51,17 @@ input or output the `floatx80' type will be defined.
 Software IEC/IEEE floating-point types.
 -------------------------------------------------------------------------------
 */
-typedef unsigned long int float32;
-typedef unsigned long long float64;
+typedef u32 float32;
+typedef u64 float64;
 typedef struct {
-    unsigned short high;
-    unsigned short __padding;
-    unsigned long long low;
+#ifdef __ARMEB__
+    u16 __padding;
+    u16 high;
+#else
+    u16 high;
+    u16 __padding;
+#endif
+    u64 low;
 } floatx80;
 
 /*