Define SET_MANTISSA for float type.
authordrepper <drepper>
Thu, 27 Mar 1997 01:48:42 +0000 (01:48 +0000)
committerdrepper <drepper>
Thu, 27 Mar 1997 01:48:42 +0000 (01:48 +0000)
wcsmbs/wcstof.c

index 7d91cf3..ef1448b 100644 (file)
 #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"