From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: Preparing for releases 1.1.0 and 1.0.1
Date: Fri, 11 Apr 2014 17:47:54 +0200 [thread overview]
Message-ID: <20140411154752.GW3034@port70.net> (raw)
In-Reply-To: <CANv4PN=cbSuaLc_=BJ8QX20UpoKh9imJ5ixL3qC4cYL_gHLKwQ@mail.gmail.com>
* Morten Welinder <mwelinder@gmail.com> [2014-04-11 11:17:00 -0400]:
> > Yes but this leads to serious breakage if the compiler does not handle
> > the request to drop precision in a conforming way, and it still
> > doesn't help the fact that strtod depends on long double semantics.
>
> Are you sure?
>
> If the incoming number has at most 53 bits then there will be at most
> 24 bits left after the 2^(1+28) reduction. The scalings by 10^9 = 2^9 * 5^9
> require at most log2(5^9) ~ 21 extra bits.
>
> That ought to fit in valgrind's double.
formatting floats (other than %a) would work with the fixed rounding
but scanning or strtod can't be fixed easily
next prev parent reply other threads:[~2014-04-11 15:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 2:40 Rich Felker
2014-04-10 13:11 ` Szabolcs Nagy
2014-04-11 1:39 ` Rich Felker
2014-04-11 9:46 ` Szabolcs Nagy
2014-04-11 13:07 ` Rich Felker
2014-04-11 15:17 ` Morten Welinder
2014-04-11 15:47 ` Szabolcs Nagy [this message]
2014-04-11 15:48 ` Rich Felker
2014-04-11 15:51 ` Rich Felker
2014-04-11 17:34 ` Morten Welinder
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=20140411154752.GW3034@port70.net \
--to=nsz@port70.net \
--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).