This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17140] Floating point output is slow
- From: "jlquinn at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2004 04:43:07 -0000
- Subject: [Bug libstdc++/17140] Floating point output is slow
- References: <20040823040835.17140.jlquinn@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jlquinn at gcc dot gnu dot org 2004-12-16 04:43 -------
I finally got some free time again. The fmttest1 failure is due to showpoint
handling. Specifically, there's the following hunk in float_to_char_scientific:
// Insert digits after decimal point
for (;__prec && *__bp; __prec--)
*__sbuf++ = __digits[*__bp++ - '0'];
if (__pad)
while (__prec--)
*__sbuf++ = __digits[0];
That if test should be if (__pad || __showpoint). I'm still having some trouble
building. When I get that sorted out, I'll update the patch with this change.
I don't know what's broken w/ 64 bit, though, and still don't really have 64 bit
access.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17140