From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id EBCD42F2A2 for ; Tue, 31 Oct 2000 08:34:39 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id e9VDYdd05296 for axp-list@listman.redhat.com; Tue, 31 Oct 2000 08:34:39 -0500 Received: from pivsbh1.ms.com (pivsbh1.ms.com [199.89.64.103]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id e9VDYdD05292 for ; Tue, 31 Oct 2000 08:34:39 -0500 Received: (from uucp@localhost) by pivsbh1.ms.com (8.9.3/fw v1.30) id IAA13721 for ; Tue, 31 Oct 2000 08:34:39 -0500 (EST) Received: from localhost(127.0.0.1) by pivsbh1 via smap (4.1) id sma.9729992591.013193; Tue, 31 Oct 00 08:34:19 -0500 Received: (from uucp@localhost) by pivsbh1.ms.com (8.9.3/8.9.3(vs)) id IAA13141 for ; Tue, 31 Oct 2000 08:34:18 -0500 (EST) X-Authentication-Warning: pivsbh1.ms.com: Processed from queue /var/spool/mqueue-vs X-Authentication-Warning: pivsbh1.ms.com: Processed by uucp with -C /etc/mail/sendmail.vs.cf Received: from cwsmh1.ms.com(138.20.13.27) by pivsbh1 via smap (4.1) id sma.9729992481.012653; Tue, 31 Oct 00 08:34:08 -0500 Received: from msdw.com (pppeq223.morgan.com [205.228.58.223]) by cwsmh1.morgan.com (8.8.5/imap+ldap v2.4) with ESMTP id NAA09192 for ; Tue, 31 Oct 2000 13:33:53 GMT Message-ID: <39FECC4D.C6FE215B@msdw.com> Date: Tue, 31 Oct 2000 13:42:37 +0000 From: Richard Polton X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.4.0-test9 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: strange (incorrect) arithmetic behaviour References: <39FE9C23.7A6CEF2A@msdw.com> <39FEBED4.DDEF7414@voicenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Indeed. I get that on my Intel, so I am wondering where the problem lies. Kernel, libc, gcc? Any ideas? Uncle George wrote: > > I get ( on rh6.2 ) on an xp1000 > > -339999995214436424907732413799364296704.000000 > 1.000000 > -339999995214436424907732413799364296704.000000 > > Richard Polton wrote: > > > Hi, > > > > I have stock RH6.1 on my LX164 machine. When executing the following > > code I see SIGFPE. > > > > #include > > #include > > > > main() > > { > > float a = -3.4e38; > > float b = 1.0; > > float c = a*b; > > printf( "%f\n%f\n%f\n", a, b, c); > > } > > > > In gdb I can see that c contains 2.4e-314 which is not the > > expected result ;). To compile I use egcs-2.91.66 as supplied with > > RH6.1 with no additional command line options. > > What am I missing or doing incorrectly? > > > > Thanks, > > > > Richard > > > > _______________________________________________ > > Axp-list mailing list > > Axp-list@redhat.com > > https://listman.redhat.com/mailman/listinfo/axp-list > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list