summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/_fpmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/amd64/_fpmath.h')
-rw-r--r--lib/libc/amd64/_fpmath.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/amd64/_fpmath.h b/lib/libc/amd64/_fpmath.h
index d78e601..35fe376 100644
--- a/lib/libc/amd64/_fpmath.h
+++ b/lib/libc/amd64/_fpmath.h
@@ -38,3 +38,8 @@ union IEEEl2bits {
};
#define mask_nbit_l(u) ((u).bits.manh &= 0x7fffffff)
+
+#define LDBL_TO_ARRAY32(u, a) do { \
+ (a)[0] = (uint32_t)(u).bits.manl; \
+ (a)[1] = (uint32_t)(u).bits.manh; \
+} while(0)
OpenPOWER on IntegriCloud