mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Morten Welinder <mwelinder@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Preparing for releases 1.1.0 and 1.0.1
Date: Fri, 11 Apr 2014 11:17:00 -0400	[thread overview]
Message-ID: <CANv4PN=cbSuaLc_=BJ8QX20UpoKh9imJ5ixL3qC4cYL_gHLKwQ@mail.gmail.com> (raw)
In-Reply-To: <20140411130747.GR26358@brightrain.aerifal.cx>

> 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.

Morten


  reply	other threads:[~2014-04-11 15:17 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 [this message]
2014-04-11 15:47           ` Szabolcs Nagy
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='CANv4PN=cbSuaLc_=BJ8QX20UpoKh9imJ5ixL3qC4cYL_gHLKwQ@mail.gmail.com' \
    --to=mwelinder@gmail.com \
    --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).