From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28033 invoked from network); 29 Jul 1999 13:26:02 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Jul 1999 13:26:02 -0000 Received: from voicenet.com (mail12.voicenet.com [207.103.0.6]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id JAA20476 for ; Thu, 29 Jul 1999 09:26:01 -0400 Received: (qmail 5679 invoked from network); 29 Jul 1999 13:25:58 -0000 Received: from dialpool0953-pri.voicenet.com (HELO voicenet.com) (209.71.88.53) by mail12.voicenet.com with SMTP; 29 Jul 1999 13:25:58 -0000 Sender: gat@mail.redhat.com Message-ID: <37A055F8.F9CEC671@voicenet.com> Date: Thu, 29 Jul 1999 09:24:08 -0400 From: Uncle George Organization: Big Endian X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Float Pt Precision Content-Type: multipart/mixed; boundary="------------5469C33161356073918581C0" This is a multi-part message in MIME format. --------------5469C33161356073918581C0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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. --------------5469C33161356073918581C0 Content-Type: application/octet-stream; name="a.c.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="a.c.gz" H4sICCJKoDcAA2EuYwDNV21vo0YQ/mx+xdSnnCDFNizYseP6pJyTtFXzpuSiqm0qhGFJ0BHs g3UCvaa/vbO7YGODc+m3IhvDzDzztrOz43dh7EVLn8IPKfOjcNZ9+KC8W9PytMfyBU05uUIP FkvHm8csmUcSEIBPgzCmPqiO40aLB9dxtArATR97CBLCUrJ1dnnxYyuax/fKOxqltE6Hghn7 YaAoj24Yq5ryVWmFMQM/vA9ZOoQJWGSsKK2UJUuPtZDb8ufLWUThSP+oT8dK6wUSmi4j1iyV 6ZALoQUzdbxxZbB1LeNwHsPXGr28ClXwZbxThMfEf6PdIjwq8fsH+bMu9QLcP0bwa+HXzHRm 5pyADwQjqC5BdQUcJ6UME+89g2po41U2WxhvN8P0dUxDXDx4s5sjhRjGmPOJ4ANYKz4R/I5t FPaMmpsy1d0jFFOlfEfq1aAnKZmk6JlWD7JATxEtnemsFe4LUjYuimUbirwvdaN1E8heyRWu dJtcYZaQq8QjLPSEggZxMxPyQh1fn3z1mjc5UUoTIU3y1StfykWCtRCo7cjx4I6hjs6HbLLX 3b9X984yDe7igpivibouqWRDdE2siN7FbX3lUbGNdBmAzu9RIzcX3LyZSwSW7MASgcV7hHle xcZD4ymteCsi4/ndpslVwAx9Mwjh5Q43hBfNPIvzLOHgrsqqF+KO0iorl+O+VVevV/o6Vx2R LKjnqkZKutNvLzVGC6+lCV7LExSJKjrJi9LbV9QzSwOz37WGA3tgGqZt2AdENTLbINTr+9Q6 8E1jYM403j6MLrYTc4iCfau491F2FpChRVzXtE3XHIwCDRPRGXVHowOzP7IJ6Q+JwXV6BrEC Opy51Bh5A9fT4Htpeq3QLk3b5advaI1OWuqWi8FuF9/m4Jvc23LO1hQlws7Nj1R5RDmLBRQb v2zQqmcSOrSHRnlpUHQBbNiocTAyKhd2hKIb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