aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wcstold.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcstold.c')
-rw-r--r--wcsmbs/wcstold.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wcsmbs/wcstold.c b/wcsmbs/wcstold.c
index 4cb68af..c94d47e 100644
--- a/wcsmbs/wcstold.c
+++ b/wcsmbs/wcstold.c
@@ -27,5 +27,12 @@
#define MPN2FLOAT __mpn_construct_long_double
#define FLOAT_HUGE_VAL HUGE_VALL
#define USE_WIDE_CHAR 1
+#define SET_MANTISSA(flt, mant) \
+ do { union ieee854_long_double u; \
+ u.d = (flt); \
+ u.ieee.mantissa0 = ((mant) >> 32) & 0x7fffffff; \
+ u.ieee.mantissa1 = (mant) & 0xffffffff; \
+ (flt) = u.d; \
+ } while (0)
#include "../stdlib/strtod.c"