From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9072 invoked from network); 8 Mar 1999 06:58:14 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Mar 1999 06:58:14 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id BAA11132 for ; Mon, 8 Mar 1999 01:52:27 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Mon, 08 Mar 1999 00:55:38 -0600 Received: by paralleldata.com from paralleldata.com (209.196.80.47::mail daemon; unverified,SLMail V2.5); Mon, 08 Mar 1999 00:55:32 -0600 Sender: "Wsb" Message-ID: <36E37375.59EAC9EE@paralleldata.com> Date: Mon, 08 Mar 1999 00:51:33 -0600 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: SIGFPE error on exponential underflow in g77 References: <199903072200.RAA29036@adder.cs.Virginia.EDU> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Greg Lindahl wrote: > > > If you are experiencing trouble with this, it would be in your best interest > > to link in either the CPML or the FFM. First, they are MUCH faster than (on > > some things) than libm, and they both seem to round to zero appropriately. > > You seem to be assuming that zero is the "right answer". It is > if -mieee is not specified. But if -mieee is specified, then there > should be routines which return a denorm. I'm surprised that CPML > doesn't have such routines. (?) > Zero is the correct answer. If you think a denormal provides useful algorithmic information, you're kidding yourself. Why would Digital/Compaq library routine writers do something that doesn't make numerical sense? Whether you push the result to zero after the exponent bits go to zero or wait until there are no more bits in the mantissa, the results to whatever equation you're calculating are highly unlikely to have any significant difference. Wes