Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120305110809.GE5728@port70.net>
Date: Mon, 5 Mar 2012 12:08:10 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: libm

* Szabolcs Nagy <nsz@...t70.net> [2012-03-04 15:50:41 +0100]:
> * Rich Felker <dalias@...ifal.cx> [2012-03-04 01:53:40 -0500]:
> > On Sat, Mar 03, 2012 at 11:57:58PM +0100, Szabolcs Nagy wrote:
> > > how to do the long double ifdefs?
> > 
> > #if LDBL_MANT_DIG == ...
> > 
> ok will do that
> 

i use the following checks in all long double code now
LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384

the inplace union declarations for bit hacks are not ok
anymore because endianness is not checked

the union declarations should go to an arch specific .h
eg. arch/i386/longdouble.h

but before that long double bit hacks may need some
cleanups (freebsd union vs openbsd macros vs ..)

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.