libc/newlib/libc
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
..
argz Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
ctype Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
errno Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
iconv Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
include Import correctly working strtold from David M. Gay. 2015-11-20 18:14:58 +01:00
locale Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
machine Import correctly working strtold from David M. Gay. 2015-11-20 18:14:58 +01:00
misc Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
posix Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
reent Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
search Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
signal Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
stdio Import correctly working strtold from David M. Gay. 2015-11-20 18:14:58 +01:00
stdio64 Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
stdlib Import correctly working strtold from David M. Gay. 2015-11-20 18:14:58 +01:00
string Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
sys Remove obsolete ARC system 2015-11-12 14:03:05 +01:00
syscalls Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
time Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
unix Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
xdr Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
Makefile.am 2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org> 2011-01-05 17:18:16 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
configure 2014-12-18 Jeff Johnston <jjohnstn@redhat.com> 2014-12-18 20:30:11 +00:00
configure.in 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
libc.texinfo Fix newlib texinfo source so 'info libc' and 'info libm' work 2015-03-16 15:02:22 +00:00
saber import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00