From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3270 invoked from network); 28 Nov 1998 13:26:32 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 28 Nov 1998 13:26:32 -0000 Received: from mailsrv.orgabelle.de (8@[195.243.123.163]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA00663 for ; Sat, 28 Nov 1998 08:25:20 -0500 Received: (from mail@localhost) by mailsrv.orgabelle.de (8.8.7/) id OAA27446 for ; Sat, 28 Nov 1998 14:05:04 +0100 Received: from mail.bcas.de(172.20.225.71) by mailsrv.bcas.de via smap (V2.0) id xma027438; Sat, 28 Nov 98 14:03:59 +0100 Received: from apollo.bcas.de (apollo.bcas.de [172.20.213.2]) by mail.bcas.de (8.8.0/) with SMTP id OAA06712 for ; Sat, 28 Nov 1998 14:24:12 +0100 (MET) From: Heinz Ulrich Stille To: axp-list@redhat.com Subject: Floating point problems Date: Sat, 28 Nov 1998 14:15:29 +0100 X-Mailer: KMail [version 0.7.9] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <98112814241200.07172@apollo.bcas.de> Content-Transfer-Encoding: 8bit Hi! What's wrong with the following program? main() { double x = 1.0; x *= 1e-310; } This results in a floating point exception on my Ruffian (for values somwhere between 1e-300 and 1e-325, independent of kernel and compiler), but not on any intel. The assembler output seems to indicate that the two values are just loaded into registers and multiplied. What is going on? MfG, Ulrich -- "If you were a boy I'd say are you going to seek your fortune?" "Can't girls seek their fortune?" "I think they're supposed to seek a boy with a fortune." T. Pratchett, "Equal Rites"