Number of significand bits in long double?

Steve Kargl sgk at troutmask.apl.washington.edu
Fri Aug 5 17:01:58 GMT 2005


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


More information about the freebsd-hackers mailing list