Rev 4921 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4921 | Rev 6099 | ||
---|---|---|---|
Line 168... | Line 168... | ||
168 | This could be changed in the future should the _ldtoa_r code be |
168 | This could be changed in the future should the _ldtoa_r code be |
169 | preferred over _dtoa_r. */ |
169 | preferred over _dtoa_r. */ |
170 | #define _NO_LONGDBL |
170 | #define _NO_LONGDBL |
171 | #if defined _WANT_IO_LONG_DOUBLE && (LDBL_MANT_DIG > DBL_MANT_DIG) |
171 | #if defined _WANT_IO_LONG_DOUBLE && (LDBL_MANT_DIG > DBL_MANT_DIG) |
172 | #undef _NO_LONGDBL |
172 | #undef _NO_LONGDBL |
173 | extern _LONG_DOUBLE _strtold _PARAMS((char *s, char **sptr)); |
- | |
174 | #endif |
173 | #endif |
Line 175... | Line 174... | ||
175 | 174 | ||
Line 176... | Line 175... | ||
176 | #include "floatio.h" |
175 | #include "floatio.h" |
Line 1594... | Line 1593... | ||
1594 | if (exp_start >= buf + sizeof (buf) - MAX_LONG_LEN) |
1593 | if (exp_start >= buf + sizeof (buf) - MAX_LONG_LEN) |
1595 | exp_start = buf + sizeof (buf) - MAX_LONG_LEN - 1; |
1594 | exp_start = buf + sizeof (buf) - MAX_LONG_LEN - 1; |
1596 | sprintf (exp_start, "e%ld", new_exp); |
1595 | sprintf (exp_start, "e%ld", new_exp); |
1597 | } |
1596 | } |
Line -... | Line 1597... | ||
- | 1597 | ||
1598 | 1598 | /* FIXME: Is that still true? |
|
1599 | /* Current _strtold routine is markedly slower than |
1599 | Current _strtold routine is markedly slower than |
1600 | _strtod_r. Only use it if we have a long double |
1600 | _strtod_r. Only use it if we have a long double |
1601 | result. */ |
1601 | result. */ |
1602 | #ifndef _NO_LONGDBL /* !_NO_LONGDBL */ |
1602 | #ifndef _NO_LONGDBL /* !_NO_LONGDBL */ |
1603 | if (flags & LONGDBL) |
1603 | if (flags & LONGDBL) |
1604 | qres = _strtold (buf, NULL); |
1604 | qres = _strtold_r (rptr, buf, NULL); |
1605 | else |
1605 | else |
1606 | #endif |
1606 | #endif |
Line 1607... | Line 1607... | ||
1607 | res = _strtod_r (rptr, buf, NULL); |
1607 | res = _strtod_r (rptr, buf, NULL); |