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
..
2012-08-08 11:04:18 +00:00
2008-12-11 17:27:56 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2008-10-31 21:08:03 +00:00
2014-07-04 17:21:45 +00:00
2014-01-17 10:55:32 +00:00
2012-05-30 08:58:42 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2013-11-18 17:28:06 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2015-06-24 12:23:25 +01:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-09-05 09:42:15 +00:00
2012-08-23 04:19:59 +00:00
2013-11-18 17:28:06 +00:00
2013-11-18 17:28:06 +00:00
2013-10-23 10:04:43 +00:00
2014-07-04 17:21:45 +00:00
2012-05-30 08:58:42 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2015-06-23 20:56:15 +01:00
2013-11-18 17:28:06 +00:00
2014-07-04 17:21:45 +00:00
2015-11-02 16:34:49 -05:00
2013-04-10 18:47:46 +00:00
2014-12-15 18:22:56 +00:00
2008-10-31 21:08:03 +00:00
2012-11-29 16:28:30 +00:00
2012-11-29 16:28:30 +00:00
2013-10-23 10:04:43 +00:00
2013-11-04 14:18:44 +00:00
2013-10-31 10:35:54 +00:00
2014-09-05 09:31:32 +00:00
2015-11-02 16:34:49 -05:00
2013-11-26 17:21:01 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2013-11-26 17:21:01 +00:00
2008-10-31 21:08:03 +00:00
2013-04-29 21:06:23 +00:00
2015-06-23 17:30:17 +01:00
2013-04-29 21:06:23 +00:00
2012-05-30 08:58:42 +00:00
2015-07-02 09:38:06 +02:00
2014-12-18 14:55:21 +00:00
2008-12-10 23:43:12 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2013-04-10 18:47:46 +00:00
2015-11-02 18:02:39 -05:00
2015-11-02 18:02:39 -05:00
2012-08-08 11:04:18 +00:00
2014-07-04 17:21:45 +00:00
2014-11-20 14:05:28 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2014-02-20 13:32:34 +00:00
2011-05-25 18:41:10 +00:00
2014-07-04 17:21:45 +00:00
2008-10-31 21:08:03 +00:00
2013-04-29 21:06:23 +00:00
2008-10-31 21:08:03 +00:00
2013-04-29 21:06:23 +00:00
2015-07-02 09:38:06 +02:00
2014-12-18 14:55:21 +00:00
2008-12-10 23:43:12 +00:00
2014-12-18 14:55:21 +00:00
2014-12-18 14:55:21 +00:00
2011-01-28 10:49:11 +00:00
2008-10-31 21:08:03 +00:00
2008-03-11 19:13:30 +00:00
2014-07-04 17:21:45 +00:00
2013-11-18 17:28:06 +00:00
2013-04-29 21:06:23 +00:00
2008-10-31 21:08:03 +00:00
2009-03-11 11:53:22 +00:00
2008-04-14 21:14:55 +00:00
2014-07-04 17:21:45 +00:00
2015-11-19 11:39:52 +00:00
2015-11-19 11:39:49 +00:00
2014-12-18 10:08:09 +00:00
2013-10-23 10:04:43 +00:00
2015-06-23 16:14:39 +01:00
2015-11-19 11:39:52 +00:00
2015-11-19 11:39:49 +00:00
2012-05-30 08:58:42 +00:00
2013-04-29 21:06:23 +00:00
2012-08-08 11:04:18 +00:00
2008-12-11 17:27:56 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2008-03-07 16:45:04 +00:00
2014-07-04 17:21:45 +00:00
2013-04-08 09:34:35 +00:00
2014-10-29 11:06:42 +00:00
2015-11-20 18:14:58 +01:00
2013-11-26 17:21:01 +00:00
2015-08-03 21:51:35 +02:00
2013-04-29 21:06:23 +00:00
2013-04-29 21:06:23 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2011-08-19 17:00:32 +00:00
2009-03-11 11:53:22 +00:00
2011-08-19 17:00:32 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2014-07-04 17:21:45 +00:00
2013-11-26 17:21:01 +00:00
2013-11-26 17:21:01 +00:00
2013-11-26 17:21:01 +00:00
2013-11-26 17:21:01 +00:00
2011-06-14 03:56:05 +00:00
2013-11-26 17:21:01 +00:00
2013-11-26 17:21:01 +00:00
2011-06-14 03:56:05 +00:00