This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3479] Incorrect rounding in strtod()
- From: "floitsch at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 02 May 2012 16:00:15 +0000
- Subject: [Bug libc/3479] Incorrect rounding in strtod()
- Auto-submitted: auto-generated
- References: <bug-3479-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=3479
--- Comment #15 from Florian Loitsch <floitsch at google dot com> 2012-05-02 16:00:15 UTC ---
The double-conversion routines extracted from v8 (Chrome's JS engine) are
pretty fast and handle corner cases correctly:
http://code.google.com/p/double-conversion
It would probably require some engineering effort to translate the code from
C++ to C and to adapt it to all of libc's requirements (for example the library
always rounds to even), but it might serve as a decent starting-point.
Another hurdle might be the requirement for a cache of precomputed 64bit
values. However, some size could probably be traded against speed.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.