From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1538 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Priorities for next release? Date: Sat, 11 Aug 2012 18:25:22 -0400 Message-ID: <20120811222522.GO27715@brightrain.aerifal.cx> References: <20120810191254.GA13232@brightrain.aerifal.cx> <20120811195649.GK27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1344723876 27275 80.91.229.3 (11 Aug 2012 22:24:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 22:24:36 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1539-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 12 00:24:37 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T0K6k-0007Ik-D6 for gllmg-musl@plane.gmane.org; Sun, 12 Aug 2012 00:24:34 +0200 Original-Received: (qmail 15820 invoked by uid 550); 11 Aug 2012 22:24:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 15812 invoked from network); 11 Aug 2012 22:24:33 -0000 Content-Disposition: inline In-Reply-To: <20120811195649.GK27715@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1538 Archived-At: 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