From: Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de>
To: axp-list@redhat.com
Subject: Re: SIGFPE error on exponential underflow in g77
Date: Fri, 05 Mar 1999 00:06:03 +0100 [thread overview]
Message-ID: <36DF11DB.58ADAFDA@frankfurt.netsurf.de> (raw)
In-Reply-To: 36DF0303.15FB@as.arizona.edu
Dave Arnett wrote:
>
> Hardware: Alpha, Aspen Systems Durango II, Samsung 21164A-533
> Software: RH 5.2 (alpha), egcs-1.0.3, version 2.90.29
>
> Can someone please tell me exactly where to find information on
> dealing with the following problem?
>
> g77 dumps core upon giving the exponential function a value less than
> -708 (double precision). However it politely sets to zero a product
> which underflows.
>
> f2c behaves the same.
>
> Code in C which performs the same mathematics, using gcc with the same
> hardware, quietly sets the underflow from the exponential function
> to zero. (No, I cannot rewrite all the code in C in a finite time).
>
> On an intel, RH 5.1, the exponential function politely goes to zero on
> underflow, as I would like.
>
> I compiled and installed a newer release, egcs-1.1.1 version 2.91.60,
> which gave the same behavior.
>
> How can I modify this behavior upon exponential underflow?
>
Andrei A. Dergatchev wrote:
>
> It must go to FAQ already :-)
>
> I'd suggest you to look in the list archives like at
> http://www.lib.uaa.alaska.edu/axp-list/
>
> (for example check a thread starting from here:
> http://www.lib.uaa.alaska.edu/axp-list/archive/1999-02/0562.html)
> As far as I get the problem there is no complete solution yet
> but -mieee in a proper enviroment must take care about it.
If you can really isolate this problem to the case when using exp, you
don't need to go back to -mieee (which slows down your code quite a
bit), but simply need a new math library.
Try to link with libffm (i.e. -lffm, but first you have to make the
library) from
http://people.frankfurt.netsurf.de/Joachim.Wesner
(Sorry, there are noew some dynamic library version make files of it out
there, it's not yet updated)
or even use the brand new, faster, better, larger (?) free Compaq
(formerly DEC) libm from
http://www.unix.digital.com/linux/cpml.0.1.tar.gz
Those should take care of the overflow probs and even speed up your
program
Joachim
next prev parent reply other threads:[~1999-03-04 23:13 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 [this message]
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
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