From owner-freebsd-current Thu Oct 31 0:51:15 2002 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 EC57437B401 for ; Thu, 31 Oct 2002 00:51:13 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E531B43E42 for ; Thu, 31 Oct 2002 00:51:12 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id TAA18412; Thu, 31 Oct 2002 19:50:59 +1100 Date: Thu, 31 Oct 2002 20:02:19 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Terry Lambert Cc: "M. Warner Losh" , , , , Subject: Re: Lack of real long double support In-Reply-To: <3DC06CE4.57CF2F96@mindspring.com> Message-ID: <20021031200004.R8632-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 30 Oct 2002, Terry Lambert wrote: > This is the basis of Bruce's complaint: > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1099099+0+archive/2002/freebsd-current/20021027.freebsd-current > > | gcc can't actually support the full range, since it doesn't control > | the runtime environement (it could issue a fninit before main() to > | change the default, but it shouldn't and doesn't). The exponent > | range is lost long before printf() is reached. E.g., > | > | long double x= DBL_MAX; > | long double y = 2 * x; > | > | gives +Inf for y since the result is doesn't fit in 53-bit precision. > | The system header correctly reports this default precision. Any header > | genrated by the gcc build should be no different, since the build should > | run in the target environment. Please forget this wrong example :-). The precision doesn't affect the exponent range. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message