[Patch, Fortran] Rework of floating point number reading
Tue Dec 30 16:42:00 GMT 2008
Thomas Koenig wrote:
> On Tue, 2008-12-30 at 09:37 +0100, Daniel Kraft wrote:
>> 3.) Keep using strtod; I'm quite sure we can speed up the existing
>> still significantly by optimizing how the string passed to strtod is
> What about using the glibc strtod as a base, and adjust it to Fortran?
> The glibc copyright is already with the FSF, so I wouldn't expect legal
> problems, but, of course, IANAL.
Actually, I don't think this is a good idea, as (at least if strtod does
really do some "magic" to get around the rounding problem as much as
possible) this sounds like including possibly a lot of system-dependent,
complicated code into libgfortran that does not really belong there.
Just my opinion, though.
I'll try how much we can save by keeping the strtod call and instead
optimizing the code before it, so we have better knowledge about the
facts, as soon as I find some time.
More information about the Gcc-patches