summary refs log tree commit diff
path: root/wcsmbs/wcstof.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcstof.c')
-rw-r--r--wcsmbs/wcstof.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wcsmbs/wcstof.c b/wcsmbs/wcstof.c
index 7d91cf33d6..ef1448b096 100644
--- a/wcsmbs/wcstof.c
+++ b/wcsmbs/wcstof.c
@@ -27,5 +27,11 @@
 #define	MPN2FLOAT	__mpn_construct_float
 #define	FLOAT_HUGE_VAL	HUGE_VALF
 #define	USE_WIDE_CHAR	1
+#define SET_MANTISSA(flt, mant) \
+  do { union ieee754_float u;						      \
+       u.f = (flt);							      \
+       u.ieee.mantissa = (mant) & 0x7fffff;				      \
+       (flt) = u.f;							      \
+  } while (0)
 
 #include "../stdlib/strtod.c"