This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] Rework of floating point number reading
Steve Kargl wrote:
> On Tue, Dec 30, 2008 at 06:31:08PM +0100, Daniel Kraft wrote:
>> For anyone interested, I looked at glibc-2.4 (the one on my system) 's
>> implementation, which is in stdlib/strtod_l.c and around 1600 lines of
>> code; I would not want to include this one in gfortran, to be honest.
>
> You may want to check out how David Gay handles the conversion.
> See g_fmt.c at http://www.netlib.org/fp/index.html
You mean dtoa.c :-)
See also
mprec.c
mprec.h
strtod.c
in "our own" libjava/classpath/native/fdlibm. Total 2125 lines, copying
in glibc's code does not look so bad anymore, does it?
Paolo