Update.
[glibc.git] / stdlib / strtold.c
blob32e7e90943a084fa1b6a2687f5fff1b25181bb2e
1 /* The actual implementation for all floating point sizes is in strtod.c.
2 These macros tell it to produce the `long double' version, `strtold'. */
4 #define FLOAT long double
5 #define FLT LDBL
6 #ifdef USE_IN_EXTENDED_LOCALE_MODEL
7 # define STRTOF __strtold_l
8 #else
9 # define STRTOF strtold
10 #endif
11 #define MPN2FLOAT __mpn_construct_long_double
12 #define FLOAT_HUGE_VAL HUGE_VALL
13 #define SET_MANTISSA(flt, mant) \
14 do { union ieee854_long_double u; \
15 u.d = (flt); \
16 if ((mant & 0x7fffffffffffffffULL) == 0) \
17 mant = 0x4000000000000000ULL; \
18 u.ieee.mantissa0 = (((mant) >> 32) & 0x7fffffff) | 0x80000000; \
19 u.ieee.mantissa1 = (mant) & 0xffffffff; \
20 (flt) = u.d; \
21 } while (0)
23 #include "strtod.c"