[Bug libfortran/48615] Invalid UP/DOWN rounding with E and ES descriptors
thenlich at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Mon Apr 25 08:44:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48615
--- Comment #12 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-04-25 08:43:32 UTC ---
The patch submitted to the list is different to the one I based my comments on.
My mistake.
Good work.
With the current method of letting printf do the conversion, there seems to be
no better way than always converting the full 40 digits, and then throwing away
most of them.
In Bug 48511 David Gay's dtoa implementation was mentioned. I looked into that
and I think it can be modified to be fully Fortran standard compliant. It
combines digit generation and rounding in one step and is probably
significantly more efficient than our current solution. Will investigate
further.
More information about the Gcc-bugs
mailing list