Number of significand bits in long double?

M. Warner Losh imp at bsdimp.com
Fri Aug 5 17:34:07 GMT 2005


In message: <20050804150405.GA95916 at troutmask.apl.washington.edu>
            Steve Kargl <sgk at troutmask.apl.washington.edu> writes:
: Can someone confirm or refute that the working number
: of bits in the significand of long double type is 53
: on i386?

The number of bits is 53.  However, you can get more bits by adding a
fpsetprec(FP_PE) at the start of the programs.  Otherwise, you get
FP_PD by default.  Once you do that, things seem to basically work,
but I've not run paranoia.c to make sure.

Warner



More information about the freebsd-hackers mailing list