mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 11:43:34 +08:00
b3fe135050
* sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double): Handle 80-bit denormalized numbers correct. * stdlib/strtod.c,stdlib/strtof.c,stdlib/strtold.c: [IMPLICIT_ONE,*_MAX_10_EXP_LOG]: not needed anymore. * stdlib/strtod.c (RETURN): parenthesis around return value. (round_and_return): correct handling of denormalized numbers. (__strtod_internal): don't check for grouping when not requested while returning 0.0. * stdio/fpioconst.[ch]: [LDBL_MAX_10_EXP_LOG]: don't use it. LAST_POW10 defines the maximal available exponent. * stdlib/{atof,atoi,atol}.c: use __strtoX_internal.
11 lines
321 B
C
11 lines
321 B
C
/* The actual implementation for all floating point sizes is in strtod.c.
|
|
These macros tell it to produce the `long double' version, `strtold'. */
|
|
|
|
#define FLOAT long double
|
|
#define FLT LDBL
|
|
#define STRTOF strtold
|
|
#define MPN2FLOAT __mpn_construct_long_double
|
|
#define FLOAT_HUGE_VAL HUGE_VALl
|
|
|
|
#include "strtod.c"
|