mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: float scanner status, upcoming release
Date: Mon, 9 Apr 2012 15:17:12 -0400	[thread overview]
Message-ID: <20120409191712.GA5269@brightrain.aerifal.cx> (raw)

Hi all,

My recent work on musl has mainly been writing the new floating point
scanning code for strtod, scanf, etc. The existing code in musl is
essentially just a placeholder; its results were seriously inaccurate
in all but the most trivial usage cases. Unfortunately, getting
accurate results, especially if you want them correctly rounded for
the current rounding direction, destination floating point precision,
and denormal corner-cases, is highly non-trivial and involves
high-precision arithmetic.

At this point, the new implementation is essentially done, but lacking
integration with libc; it's just a standalone program for reading
decimal floating point strings and converting them. Integration will
require a bit more work getting the function interface suitable for
use by both *scanf() and strto*()/wcsto*(), along with general
cleanups and implementing the now-missing (but MUCH easier) hex float
support.

I'll keep working on it as time allows, and hope to have it committed
within the next few days. At that point I'm hoping to release 0.8.8,
so please report any other pending issues that should be fixed before
release.

Rich


             reply	other threads:[~2012-04-09 19:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 19:17 Rich Felker [this message]
2012-04-09 19:21 ` Rich Felker
2012-04-10  0:09   ` Pascal Cuoq
2012-04-10  0:36     ` Rich Felker
2012-04-10  0:48 ` Rich Felker
2012-04-10 12:15   ` Szabolcs Nagy
2012-04-10 13:02     ` Rich Felker
2012-04-10 15:24 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120409191712.GA5269@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).