Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Adam C. Powell, IV" <adam.powell@nist.gov>
To: axp-list@redhat.com
Subject: Re: Floating point question
Date: Tue, 12 Jan 1999 12:11:04 -0500	[thread overview]
Message-ID: <369B8228.320288BD@nist.gov> (raw)
In-Reply-To: 369B7F02.301B4E6A@hamster.lorentzian.com

John Montgomery wrote:

> I asked the list recently how to deal with floating point exceptions
> resulting from underflows.  I was advised that I could use the -miee
> flag, but that my code would run slower.  Subsequent experimentation has
> indicated how true this is - my code now works, but runs almost 3 times
> slower than under Digital Unix.  So I wonder
>
> 1) Why is ieee so much slower?
>
> 2) How is this problem handled on Digital Unix?
>
> Some of my factor of 3 is due to having used a better compiler on
> Digital Unix, but probably not all of it.  What else is going on?
> I'll be grateful for any insights that people might have about this.

Have you tried libffm?  If not, the problem is definitely the math
library.  The one in glibc is vastly slower than either libffm or Digital
Unix.

As I recall, your problem was underflows in exp() due to large negative
arguments.  libffm returns zero by default, without -mieee.

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  | \||_> |




  reply	other threads:[~1999-01-12 17:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-12 16:57 Floating point question John Montgomery
1999-01-12 17:11 ` Adam C. Powell, IV [this message]
1999-01-12 17:43   ` Greg Lindahl
1999-01-12 20:33   ` John Montgomery
1999-01-12 21:10     ` Greg Lindahl
1999-01-12 22:03       ` John Montgomery
1999-01-13 14:09         ` Heinz Ulrich Stille
1999-01-13 14:36           ` Greg Lindahl
1999-01-13 20:47           ` Joachim Wesner
1999-01-13 21:01             ` Greg Lindahl
1999-01-14 12:31               ` 32 bit pointers Uncle George
1999-01-15 15:01             ` Floating point question Heinz Ulrich Stille
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