From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2364 invoked from network); 3 Dec 1998 22:10:54 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Dec 1998 22:10:54 -0000 Received: from ares.cs.Virginia.EDU (ares.cs.Virginia.EDU [128.143.137.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA02563 for ; Thu, 3 Dec 1998 17:07:15 -0500 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id PAA01111; Thu, 3 Dec 1998 15:16:10 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.7.5/8.7.3) id PAA02879; Thu, 3 Dec 1998 15:16:09 -0500 (EST) Message-Id: <199812032016.PAA02879@adder.cs.Virginia.EDU> Subject: Re: Floating point problems To: rth@cygnus.com Date: Thu, 3 Dec 1998 15:16:08 -0500 (EST) Cc: axp-list@redhat.com In-Reply-To: <19981203120426.A12354@dot.cygnus.com> from "Richard Henderson" at Dec 3, 98 12:04:26 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > 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