Corinna Vinschen
fbace81684
Import correctly working strtold from David M. Gay.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add strtodg.c and
strtorx.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/strtodg.c: New file implementing generic string to long
double conversion.
* libc/stdlib/strtorx.c: New file, implementing IEEE format string to
long double conversion.
* libc/stdlib/mprec.h (_strtodg_r): Declare.
(_strtorx_r): Declare.
* libc/stdlib/gdtoa.h (__UShort): Define.
* libc/stdlib/strtold.c (__flt_rounds): Define for i386 and x86_64
target.
(FLT_ROUNDS): Define, as 0 on platforms missing a __flt_rounds
function.
(_strtold_r): Converted from strtold. Call _strtorx_r on targets
supporting distinct long doubles.
(strtold): Just call _strtold_r.
* libc/include/stdlib.h (_strtold_r): Declare.
* libc/stdlib/ldtoa.c (_strtold): Comment out. Explain why.
* libc/stdio/vfscanf.c (__SVFSCANF_R): Call _strtold_r instead of
_strtold.
* libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
* common.din (strtold): Drop redirection to _strtold.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-11-20 18:14:58 +01:00
..
2015-11-12 14:14:17 +01:00
2012-11-01 11:51:12 +00:00
2015-10-19 14:48:30 +01:00
2014-10-10 14:43:19 +00:00
2009-12-17 21:08:04 +00:00
2006-12-13 23:01:21 +00:00
2007-05-23 16:36:23 +00:00
2012-10-16 19:00:30 +00:00
2015-02-06 16:14:04 +00:00
2009-11-06 03:27:19 +00:00
2008-10-31 21:03:42 +00:00
2003-05-28 22:04:40 +00:00
2008-10-31 21:03:42 +00:00
2013-11-13 09:09:45 +00:00
2013-11-21 17:04:57 +00:00
2014-02-09 20:02:17 +00:00
2013-11-20 13:39:36 +00:00
2015-02-06 16:14:04 +00:00
2015-08-27 12:50:25 +02:00
2010-04-30 14:58:28 +00:00
2015-07-06 14:58:51 -05:00
2013-12-23 19:21:07 +00:00
2012-11-01 11:51:12 +00:00
2013-02-26 14:25:13 +00:00
2015-02-06 16:14:04 +00:00
2013-10-15 17:34:23 +00:00
2015-10-30 20:28:00 +01:00
2014-02-09 20:02:17 +00:00
2013-04-23 09:42:25 +00:00
2013-11-20 16:25:50 +00:00
2010-04-01 18:33:37 +00:00
2013-11-20 18:22:27 +00:00
2014-01-20 17:23:41 +00:00
2011-05-04 11:26:22 +00:00
2013-11-25 17:23:30 +00:00
2013-09-12 22:05:43 +00:00
2015-04-29 13:07:17 +02:00
2014-12-15 18:22:56 +00:00
2015-03-05 17:15:24 +00:00
2015-11-20 18:14:58 +01:00
2015-07-06 14:58:51 -05:00
2010-12-08 10:28:40 +00:00
2007-08-03 21:03:40 +00:00
2012-10-16 18:45:24 +00:00
2015-10-13 17:52:34 -04:00
2015-03-11 15:45:38 +01:00
2015-03-05 17:15:24 +00:00
2013-11-23 22:39:34 +00:00