Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 11 Aug 2012 18:25:22 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: Priorities for next release?

On Sat, Aug 11, 2012 at 03:56:49PM -0400, Rich Felker wrote:
> On Fri, Aug 10, 2012 at 03:12:55PM -0400, Rich Felker wrote:
> > Other requests?
> 
> Summary so far:
> 
> - significand - easy to do

Actually not quite as easy as I thought. Do we also want the float and
ld versions? And how are they supposed to behave on inf/nan? I think
an optimal implementation would be something like:

if (isnormal(x.d)) return x.rep = (x.rep&mask|exp_0), x.d;
else return scalbn(x, -ilogb(x));

and then just always using scalbnl for ld so as not to introduce more
ld-format-specific code just for legacy purposes.

Anyone up for submitting a patch?

Rich

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.