Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 11 Apr 2014 17:47:54 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Preparing for releases 1.1.0 and 1.0.1

* Morten Welinder <mwelinder@...il.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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.