From: Greg Lindahl <lindahl@cs.virginia.edu>
To: rth@cygnus.com
Cc: axp-list@redhat.com
Subject: Re: Floating point problems
Date: Thu, 3 Dec 1998 15:16:08 -0500 (EST) [thread overview]
Message-ID: <199812032016.PAA02879@adder.cs.Virginia.EDU> (raw)
In-Reply-To: <19981203120426.A12354@dot.cygnus.com> from "Richard Henderson" at Dec 3, 98 12:04:26 pm
> Actually this is a good idea. And the compiler already defines
> -D_IEEE_FP. And the define can even be replaced by
>
> extern double sqrt (double) __asm__("_sqrt_no_denorm");
Yes, that's all clean. We just have to incite the library writers to
produce the *_no_denorm routines.
> The question, then, is what to do with the other problematic
> return values, Inf and NaN? Should Inf be replaced by the
> largest finite value?
No. The object here is to allow code to run fast while changing its
semantics as little as possible. Messing with Inf and NaN would not
really help anyone.
There are users who would like their code to crash whenever Inf or NaN
is produced; we should document how to do that.
-- g
next prev parent reply other threads:[~1998-12-03 22:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-30 8:16 Floating point problems y0000218
1998-11-30 9:08 ` Carles Perello
1998-11-30 9:53 ` Joachim Wesner
1998-11-30 14:22 ` Alvin Starr
1998-11-30 13:27 ` krebs
1998-11-30 17:06 ` Joachim Wesner
1998-12-03 0:48 ` Richard Henderson
1998-12-03 16:59 ` Greg Lindahl
1998-12-03 19:35 ` Joachim Wesner
1998-12-03 20:04 ` Richard Henderson
1998-12-03 20:16 ` Greg Lindahl [this message]
1998-12-03 23:44 ` Joachim Wesner
1998-12-01 8:42 ` Jochen Kuepper
-- strict thread matches above, loose matches on Subject: below --
1998-11-30 10:24 y0000218
1998-11-30 13:30 ` Alvin Starr
1998-12-03 0:48 ` Richard Henderson
1998-11-28 13:15 Heinz Ulrich Stille
1998-11-28 14:24 ` Johannes G.D. Hausmann
1998-11-28 13:58 ` Heinz Ulrich Stille
1998-11-28 14:48 ` Stefan Schroepfer
1998-11-28 14:57 ` Heinz Ulrich Stille
1998-11-29 13:15 ` Johannes G.D. Hausmann
1998-11-29 13:02 ` Heinz Ulrich Stille
1998-11-29 18:01 ` B. James Phillippe
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