From: "Adam C. Powell, IV" <adam.powell@nist.gov>
To: axp-list@redhat.com
Subject: Re: Problem with floating point exceptions
Date: Wed, 06 Jan 1999 16:57:28 -0500 [thread overview]
Message-ID: <3693DC48.155A662A@nist.gov> (raw)
In-Reply-To: 3693D5C9.786F9302@hamster.lorentzian.com
John Montgomery wrote:
> I'm trying to port a large Fortran program to alpha Linux using f2c/gcc.
> My system is a UDB running RedHat 5.1. I'm able to compile and run my
> code, but I'm having some strange numerical problems. I get floating
> point exceptions in sections of the code which evaluate exp(-x) for large
> positive values of x. This is normal behavior and on other platforms
> results in underflows, which are silently set to zero. Also, when I poke
> around in core dumps with gdb I find numbers with exponents less than
> -308, which seem like they should have overflowed already. Perhaps these
> somehow got unnormalized?
>
> I'd like to just have these cases underflow to zero without generating
> exceptions, does anyone know how to make this happen?
I'm not positive, but I think libffm 0.28 gives the behavior you want, and
it is several times faster than libm, let alone with -mieee. Just download,
build, and link your code -lffm -lm.
http://people.frankfurt.netsurf.de/Joachim.Wesner/
Zeen,
-Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____
USDoC, National Institute of Standards & Technology (NIST) |\ ||< |
Center for Theoretical and Computational Materials Science | \||_> |
next prev parent reply other threads:[~1999-01-06 22:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-06 21:29 Problem with floating point exceptions John Montgomery
1999-01-06 21:47 ` Greg Lindahl
1999-01-06 23:23 ` Michal Jaegermann
1999-01-07 10:19 ` John Connett
1999-01-06 21:57 ` Adam C. Powell, IV [this message]
1999-01-07 1:06 ` Joachim Wesner
1999-01-07 15:54 ` Samba Izaak Bozof
1999-01-07 16:53 ` Samba feedback
1999-01-07 16:56 ` Samba Michal Jaegermann
1999-01-07 17:57 ` Samba Maurice Hilarius
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