diff options
| author | Olivier Houchard <cognet@FreeBSD.org> | 2005-03-20 00:53:52 +0000 |
|---|---|---|
| committer | Olivier Houchard <cognet@FreeBSD.org> | 2005-03-20 00:53:52 +0000 |
| commit | 2b2714935bc7d030de3fdc88eae331a40f2d188d (patch) | |
| tree | 4fbdc701e4b4707445b267f41a4efecc5ae08b0f /lib/libc/arm | |
| parent | 7fc53c7b12f6fd144eecf9487358fc8abdef9cc2 (diff) | |
Notes
Diffstat (limited to 'lib/libc/arm')
| -rw-r--r-- | lib/libc/arm/Makefile.inc | 5 | ||||
| -rw-r--r-- | lib/libc/arm/_fpmath.h | 16 |
2 files changed, 13 insertions, 8 deletions
diff --git a/lib/libc/arm/Makefile.inc b/lib/libc/arm/Makefile.inc index c1cf60b06388..90dde632d053 100644 --- a/lib/libc/arm/Makefile.inc +++ b/lib/libc/arm/Makefile.inc @@ -7,6 +7,5 @@ SOFTFLOAT_BITS=32 CFLAGS+=-DSOFTFLOAT -# Long double is 80 bits -GDTOASRCS+=strtopx.c -MDSRCS+=machdep_ldisx.c +# Long double is just double precision. +MDSRCS+=machdep_ldisd.c diff --git a/lib/libc/arm/_fpmath.h b/lib/libc/arm/_fpmath.h index 80e764f8eacf..98d78327dec6 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 |
