summaryrefslogtreecommitdiffstats
path: root/lib/libc/arm/_fpmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arm/_fpmath.h')
-rw-r--r--lib/libc/arm/_fpmath.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/libc/arm/_fpmath.h b/lib/libc/arm/_fpmath.h
index 80e764f..98d7832 100644
--- a/lib/libc/arm/_fpmath.h
+++ b/lib/libc/arm/_fpmath.h
@@ -29,16 +29,22 @@
union IEEEl2bits {
long double e;
struct {
+#ifndef __ARMEB__
unsigned int manl :32;
- unsigned int manh :32;
- unsigned int exp :15;
+ unsigned int manh :20;
+ unsigned int exp :11;
unsigned int sign :1;
- unsigned int junk :16;
+#else
+ unsigned int sign :1;
+ unsigned int exp :11;
+ unsigned int manh :20;
+ unsigned int manl :32;
+#endif
} bits;
};
-#define LDBL_NBIT 0x80000000
-#define mask_nbit_l(u) ((u).bits.manh &= ~LDBL_NBIT)
+#define LDBL_NBIT 0
+#define mask_nbit_l(u) ((void)0)
#define LDBL_MANH_SIZE 32
#define LDBL_MANL_SIZE 32
OpenPOWER on IntegriCloud