From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1722 invoked from network); 29 Jul 1999 14:32:30 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Jul 1999 14:32:30 -0000 Received: from mgw-x1.nokia.com (mgw-x1.nokia.com [131.228.20.21]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA27013 for ; Thu, 29 Jul 1999 10:32:29 -0400 Received: from mgw-i1.ntc.nokia.com (mgw-i1.ntc.nokia.com [131.228.118.60]) by mgw-x1.nokia.com (8.9.3/8.9.3) with ESMTP id RAA24972 for ; Thu, 29 Jul 1999 17:32:28 +0300 (EETDST) Received: from ducati.uk.ntc.nokia.com (ducati.uk.ntc.nokia.com [131.228.132.169]) by mgw-i1.ntc.nokia.com (8.9.3/8.9.3) with SMTP id RAA12728 for ; Thu, 29 Jul 1999 17:32:27 +0300 (EETDST) Received: from mvagusta by ducati.uk.ntc.nokia.com (SMI-8.6/SMI-SVR4) id PAA11833; Thu, 29 Jul 1999 15:31:56 +0100 Received: from localhost (localhost [127.0.0.1]) by mvagusta (SMI-8.6/8.6.9) with ESMTP id PAA24999 for ; Thu, 29 Jul 1999 15:32:24 +0100 Date: Thu, 29 Jul 1999 15:32:24 +0100 (WET DST) From: Phil Carmody X-Sender: carmody@mvagusta.uk.ntc.nokia.com To: axp-list@redhat.com Subject: Re: Float Pt Precision In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 29 Jul 1999, EXT Alvin Starr wrote: > > To my knowledge(Just checked the alpha referance manual) there is no > 80 bit floating point format for the alpha. I am also not sure if the 80 > bit format is an IEEE standard like the 64 and 32 bit formats. There is an IEEE standard for this 'extended' precision. > > It seems that a lot of folks believe the FP is fast(er than the intel ), > > but it seems to be at the cost of precision. Which for me would be of > > some concern in massive numerical calculations. > > This is the argument between CISC and RISC. The intel FP is in some ways > all singing and all dancing. The Alpha FP is more limited but is much > faster. If you hit a special case Intel handles it in HW, on Alpha it > becomes a SW trap. > > You should get the precision that you expect constantly and not depending > on the order of the operands. A+B+C should allways be the "exact" same as > B+C+A and not "just about" the same. If you cannot guarentee that your > data will be presented in the same order all the time what would be the > point of trying to compare the results. Alas you're going to be disappointed, I wish it were true, but we're in a finite universe. For every architecture, where e = machine epsilon: (-1 + 1) + e == e but (1 + e) - 1 == e The a rule of thumb in these matters is to try to split the 'small' data from the 'large' data, and handle all the 'small' data first before it gets swamped by the 'large' data. Oh - I was incorrect with my previous reference: "What every computer scientist should know about floating point arithmetic" is by Goldberg, not Kahan. However, it's 'in the style' of similar things by Kahan. Phil -- Phil Carmody. Not speaking for or on behalf of Nokia Telecommunications The chief contribution of Protestantism to human thought is its massive proof that God is a bore. -- Henry Louis Mencken (1880-1956) American editor & critic