Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: SIGFPE error on exponential underflow in g77
Date: Mon, 08 Mar 1999 14:23:12 -0600	[thread overview]
Message-ID: <36E431B0.A42C1D1B@paralleldata.com> (raw)
In-Reply-To: 36E4CE6B.DDD6EA35@lanl.gov

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


  reply	other threads:[~1999-03-08 21:17 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-04 22:02 SIGFPE error on exponential underflow in g77 Dave Arnett
1999-03-04 22:40 ` Andrei A. Dergatchev
1999-03-04 22:56 ` Greg Lindahl
1999-03-04 23:06 ` Joachim Wesner
1999-03-05 13:11   ` Greg Lindahl
1999-03-05 15:57     ` Dave Arnett
1999-03-05 16:24       ` Greg Lindahl
1999-03-05 22:08         ` Phillip Ezolt
1999-03-05 22:56           ` Alpa Processor no longer Number one :( Aaron
1999-03-05 22:27             ` Alpa Processor no longer Number one, nonsense phoenix2063
1999-03-05 23:35               ` Ron Farrer
1999-03-06 17:46               ` Kevin.Brown
1999-03-06 19:02                 ` mgraffam
1999-03-06 21:21                   ` Joachim Wesner
1999-03-06 21:47                     ` mgraffam
1999-03-06 22:22                       ` Kevin
1999-03-08 10:20               ` Jochen Kuepper
1999-04-09 12:35                 ` Michael Wilhelm
1999-03-05 23:07             ` Alpa Processor no longer Number one :( Andrew Hobgood
1999-03-05 23:11             ` Greg Lindahl
1999-03-05 23:18             ` Ron Farrer
1999-03-06 14:28               ` Aaron
1999-03-06  0:02             ` Dan O'Reilly
1999-03-06  1:00             ` Guide to life, love, and Intel marketing techniques (Alpa Processor no longer...) Daniel J. Frasnelli
1999-03-08 11:24             ` Alpa Processor no longer Number one :( Phil Carmody
1999-03-07 22:00           ` SIGFPE error on exponential underflow in g77 Greg Lindahl
1999-03-08  6:51             ` Wes Bauske
1999-03-08 13:19               ` Greg Lindahl
1999-03-09  7:31               ` Neil Carlson
1999-03-08 20:23                 ` Wes Bauske [this message]
1999-03-08 21:26                   ` Joachim Wesner
1999-03-08 18:00 ` Dave Arnett
1999-03-08 18:31   ` Greg Lindahl
1999-03-08 19:30     ` Phillip Ezolt
1999-03-08 20:13       ` Greg Lindahl
1999-03-08 21:47         ` Phillip Ezolt
1999-03-08 21:58           ` Dave Arnett
1999-03-13 17:13           ` Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox