Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2005 09:57:37 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Lonnie VanZandt <lonnie.vanzandt@ngc.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Number of significand bits in long double?
Message-ID:  <20050804165737.GB96813@troutmask.apl.washington.edu>
In-Reply-To: <200508041030.03075.lonnie.vanzandt@ngc.com>
References:  <20050804162618.GA96657@troutmask.apl.washington.edu> <200508041030.03075.lonnie.vanzandt@ngc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050804165737.GB96813>