diff options
Diffstat (limited to 'dtoa.c')
-rw-r--r-- | dtoa.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -185,6 +185,8 @@ | |||
185 | * used for input more than STRTOD_DIGLIM digits long (default 40). | 185 | * used for input more than STRTOD_DIGLIM digits long (default 40). |
186 | */ | 186 | */ |
187 | 187 | ||
188 | #include "dtoa_config.h" | ||
189 | |||
188 | #ifndef Long | 190 | #ifndef Long |
189 | #define Long long | 191 | #define Long long |
190 | #endif | 192 | #endif |
@@ -523,7 +525,7 @@ BCinfo { int dp0, dp1, dplen, dsign, e0, inexact, nd, nd0, rounding, scale, uflc | |||
523 | #define Kmax 7 | 525 | #define Kmax 7 |
524 | 526 | ||
525 | #ifdef __cplusplus | 527 | #ifdef __cplusplus |
526 | extern "C" double strtod(const char *s00, char **se); | 528 | extern "C" double fpconv_strtod(const char *s00, char **se); |
527 | extern "C" char *dtoa(double d, int mode, int ndigits, | 529 | extern "C" char *dtoa(double d, int mode, int ndigits, |
528 | int *decpt, int *sign, char **rve); | 530 | int *decpt, int *sign, char **rve); |
529 | #endif | 531 | #endif |
@@ -2471,7 +2473,7 @@ retlow1: | |||
2471 | #endif /* NO_STRTOD_BIGCOMP */ | 2473 | #endif /* NO_STRTOD_BIGCOMP */ |
2472 | 2474 | ||
2473 | double | 2475 | double |
2474 | strtod | 2476 | fpconv_strtod |
2475 | #ifdef KR_headers | 2477 | #ifdef KR_headers |
2476 | (s00, se) CONST char *s00; char **se; | 2478 | (s00, se) CONST char *s00; char **se; |
2477 | #else | 2479 | #else |
@@ -3746,9 +3748,9 @@ dtoa | |||
3746 | *decpt = 9999; | 3748 | *decpt = 9999; |
3747 | #ifdef IEEE_Arith | 3749 | #ifdef IEEE_Arith |
3748 | if (!word1(&u) && !(word0(&u) & 0xfffff)) | 3750 | if (!word1(&u) && !(word0(&u) & 0xfffff)) |
3749 | return nrv_alloc("Infinity", rve, 8); | 3751 | return nrv_alloc("inf", rve, 8); |
3750 | #endif | 3752 | #endif |
3751 | return nrv_alloc("NaN", rve, 3); | 3753 | return nrv_alloc("nan", rve, 3); |
3752 | } | 3754 | } |
3753 | #endif | 3755 | #endif |
3754 | #ifdef IBM | 3756 | #ifdef IBM |