Date: Fri, 5 Aug 2005 10:01:57 -0700 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: Denis Antrushin <DAntrushin@mail.ru> Cc: freebsd-hackers@freebsd.org Subject: Re: Number of significand bits in long double? Message-ID: <20050805170157.GD4147@troutmask.apl.washington.edu> In-Reply-To: <42F395D8.5020200@mail.ru> References: <20050804150405.GA95916@troutmask.apl.washington.edu> <42F36675.2090602@mail.ru> <20050805160219.GB4147@troutmask.apl.washington.edu> <42F395D8.5020200@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 05, 2005 at 08:37:44PM +0400, Denis Antrushin wrote: > Steve Kargl wrote: > >On Fri, Aug 05, 2005 at 05:15:33PM +0400, Denis Antrushin wrote: > > > >>Steve Kargl wrote: > >> > >>>Can someone confirm or refute that the working number > >>>of bits in the significand of long double type is 53 > >>>on i386? > >>> > >> > >>Yes, this is what IEEE 754 requires. > >>(See http://docs.sun.com/source/806-3568/ncg_goldberg.html, > >>section 'The IEEE Standard') > >> > > > >BZZZT. > > > >You're not even close to correct. See Table 1 in the IEEE > >754 standard and then read section 3.4. > > > > Well, you know the answer then ;-) I know what IEEE-754 specifies. I don't know what FreeBSD implements. In particular, float.h misrepresents long double on i386. -- Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050805170157.GD4147>