From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 5 17:01:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8881216A41F for ; Fri, 5 Aug 2005 17:01:58 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 236BB43D48 for ; Fri, 5 Aug 2005 17:01:58 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id j75H1vJB004760; Fri, 5 Aug 2005 10:01:57 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id j75H1vKk004759; Fri, 5 Aug 2005 10:01:57 -0700 (PDT) (envelope-from sgk) Date: Fri, 5 Aug 2005 10:01:57 -0700 From: Steve Kargl To: Denis Antrushin Message-ID: <20050805170157.GD4147@troutmask.apl.washington.edu> References: <20050804150405.GA95916@troutmask.apl.washington.edu> <42F36675.2090602@mail.ru> <20050805160219.GB4147@troutmask.apl.washington.edu> <42F395D8.5020200@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42F395D8.5020200@mail.ru> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Sat, 06 Aug 2005 11:50:05 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Number of significand bits in long double? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2005 17:01:58 -0000 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