From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15897 invoked from network); 8 Mar 1999 21:17:32 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Mar 1999 21:17:32 -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 QAA19279 for ; Mon, 8 Mar 1999 16:11:29 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Mon, 08 Mar 1999 14:27:15 -0600 Received: by paralleldata.com from paralleldata.com (207.158.111.69::mail daemon; unverified,SLMail V2.5); Mon, 08 Mar 1999 14:27:13 -0600 Sender: "Wsb" Message-ID: <36E431B0.A42C1D1B@paralleldata.com> Date: Mon, 08 Mar 1999 14:23:12 -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> <36E37375.59EAC9EE@paralleldata.com> <36E4CE6B.DDD6EA35@lanl.gov> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Neil Carlson wrote: > > Wes Bauske wrote: > > > > Greg Lindahl wrote: > > > > > > 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. > > If you haven't already done so, I'd recommend educating yourself on > the numerical motivations underlying IEEE 754 by going to W. Kahan's > website (http://www.cs.berkeley.edu/~wkahan/ieee754status) and doing > some reading. Kahan was one of the major framers of the standard > and is a highly regarded numerical analyst. > Good reference. This is an interesting statement, note "Gradual Underflow" means denormals: the troubles caused by underflow cannot all be alleviated by Gradual Underflow; it dispatches only those underflows that it can render practically indistinguishable from roundoff. The same effect can be accomplished by a knowledgeable and diligent programmer at the cost of a few extra tests against artfully chosen thresholds. Some such tests may be needed even with Gradual Underflow to render a program invulnerable to over/underflow. How big a burden should hardware designers bear to save adept programmers from a few tests, and to protect some unknowable number of users of naively written programs from falling unwittingly into a tiny chasm? Note the comment on naive programmers. Basically, all denormals do is slightly delay the problem. The problem is still there however and you need to deal with it in your algorithm. Wes