summaryrefslogtreecommitdiff
path: root/lib/libc/powerpc
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2003-04-05 22:10:13 +0000
committerDavid Schultz <das@FreeBSD.org>2003-04-05 22:10:13 +0000
commit92b93b37c0507cd99d1f3e837826c987ebff58dc (patch)
tree5a3e884c339a9c9b47d7762f22425febdfd1f2f3 /lib/libc/powerpc
parent628f583ce90d3587595c2f4dd16d57eec3511af3 (diff)
Notes
Diffstat (limited to 'lib/libc/powerpc')
-rw-r--r--lib/libc/powerpc/_fpmath.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/powerpc/_fpmath.h b/lib/libc/powerpc/_fpmath.h
index af2e9591dbd6..52129a4263f2 100644
--- a/lib/libc/powerpc/_fpmath.h
+++ b/lib/libc/powerpc/_fpmath.h
@@ -38,3 +38,11 @@ union IEEEl2bits {
/* XXX does powerpc have a normalization bit? */
#define mask_nbit_l(u) ((void)0)
+#define LDBL_IMPLICIT_NBIT
+
+#define LDBL_TO_ARRAY32(u, a) do { \
+ (a)[0] = (uint32_t)(u).bits.manl; \
+ (a)[1] = (uint32_t)((u).bits.manl >> 32); \
+ (a)[2] = (uint32_t)(u).bits.manh; \
+ (a)[3] = (uint32_t)((u).bits.manh >> 32); \
+} while(0)