This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] Rework of floating point number reading


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
code still significantly by optimizing how the string passed to strtod is constructed.

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.

Cheers,
Daniel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]