From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 19:15:50 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD8DD16A41F for ; Thu, 4 Aug 2005 19:15:50 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail20.syd.optusnet.com.au (mail20.syd.optusnet.com.au [211.29.132.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3E5F43D46 for ; Thu, 4 Aug 2005 19:15:49 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail20.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j74JFlmI027948 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 5 Aug 2005 05:15:48 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j74JFlSR002877; Fri, 5 Aug 2005 05:15:47 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j74JFlHI002876; Fri, 5 Aug 2005 05:15:47 +1000 (EST) (envelope-from pjeremy) Date: Fri, 5 Aug 2005 05:15:47 +1000 From: Peter Jeremy To: Steve Kargl Message-ID: <20050804191547.GB2104@cirb503493.alcatel.com.au> References: <20050804162618.GA96657@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050804162618.GA96657@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.2i Cc: freebsd-current@freebsd.org Subject: Re: Number of significand bits in long double? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 19:15:50 -0000 On Thu, 2005-Aug-04 09:26:18 -0700, 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? A long double on an i386 is 64 bits by default. The FP initialisation code in FreeBSD sets rounding precision to double so that only 53 bits are available. You can override this in userland with fpsetprec() (but note this may adversely impact on the accuracy of some libm functions). See the LDBL_* macros in for native precision. -- Peter Jeremy