Re: Number of significand bits in long double?

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Thu, 4 Aug 2005 09:57:37 -0700
On Thu, Aug 04, 2005 at 10:30:02AM -0600, Lonnie VanZandt wrote:
> On Thursday 04 August 2005 10:26 am, Steve Kargl wrote:
> > Can someone confirm or refute that the long double type
> > has 53 bits in its significand on i386?  Which header
> > file in /usr/include provides this info?
> 
> Would a reference such as 
> http://babbage.cs.qc.edu/IEEE-754/IEEE-754references.html help you?
> 

No.  I have a copy of IEEE-754, which states

     All implementations conforming to this standard shall support
     the single format.  Implementations should support the extended
     format corresponding to the widest basic format supported, and
     need not support any other extended format.

FreeBSD's float type is the single format.  FreeBSD's double type
is the double format and it also coincides with extended-single
format.  Note IEEE-754 says "Implementations should support" not
"Implementations shall support".

-- 
Steve
Received on Thu Aug 04 2005 - 14:57:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:40 UTC