Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Float Pt Precision
Date: Thu, 29 Jul 1999 09:24:08 -0400	[thread overview]
Message-ID: <37A055F8.F9CEC671@voicenet.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

Been trying to determine why the double's between an Intel Box & and
Alpha box are different on postgresql.

The algoritms:
1a)    t1.q = result.A * pt1.x;
1b)   t2.q = pt1.y - t1.q;

and

2)    t3.q = result.C = pt1.y - result.A * pt1.x;

will produce the same results on the Alpha    0x402ec4ec4ec4ec50,
but will produce different results in the intel    0x402ec4ec4ec4ec50,
0x402ec4ec4ec4ec54

I suppose that this can be chalked up to the extended ( 80bit) precision
on the Intel box,
BUT IT MAKES MY life at porting postgres to the alpha, as well as other
projects very difficult to perform alike equally . A few more
calculations, and you begin to wonder where the least sig digit has gone
off to.

80 bit extended precision on alpha? This particular feature is not
mentioned too much ( if at all ) in the alpha literature. Nor are the
internal methods of processing floating points really described.

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.

gat

BTW as a side issue, there doesn't seem to be any way to get the
compiler to do different 'rounding' techniques.  Ie chopped, +infinity,
-Infinity.

[-- Attachment #2: a.c.gz --]
[-- Type: application/octet-stream, Size: 1281 bytes --]

             reply	other threads:[~1999-07-29 13:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-29 13:24 Uncle George [this message]
1999-07-29 14:03 ` Float Pt Precision Alvin Starr
1999-07-29 14:32   ` Phil Carmody
1999-07-29 15:57     ` Michael J. Donahue
1999-07-29 18:51       ` Harvey J. Stein
1999-07-29 19:47         ` Wes Bauske
1999-07-29 21:05           ` Harvey J. Stein
1999-07-29 21:07         ` Michael J. Donahue
1999-07-29 14:17 ` Phil Carmody
1999-07-29 14:24 ` Christopher C Chimelis
1999-07-29 16:39 ` Wes Bauske
1999-07-29 23:42 ` Richard Henderson
1999-07-30 13:19   ` Harvey J. Stein
1999-07-30 14:38     ` Uncle George
1999-07-30 14:55   ` Uncle George
1999-07-30 11:18 ` Phil Carmody
1999-07-30 14:52   ` Uncle George
1999-07-30 15:31     ` Phil Carmody
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox