From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28037 invoked from network); 3 Dec 1998 20:08:04 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Dec 1998 20:08:04 -0000 Received: from cygnus.com (runyon.cygnus.com [205.180.230.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA30504 for ; Thu, 3 Dec 1998 15:04:28 -0500 Received: from dot.cygnus.com (dot.cygnus.com [205.180.230.224]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id MAA12777; Thu, 3 Dec 1998 12:04:27 -0800 (PST) Received: (rth@localhost) by dot.cygnus.com (8.8.7/8.6.4) id MAA12359; Thu, 3 Dec 1998 12:04:26 -0800 Message-ID: <19981203120426.A12354@dot.cygnus.com> Date: Thu, 3 Dec 1998 12:04:26 -0800 From: Richard Henderson To: Greg Lindahl , rth@cygnus.com Cc: axp-list@redhat.com Subject: Re: Floating point problems Reply-To: Richard Henderson References: <19981202164800.G11351@dot.cygnus.com> <199812031659.LAA25618@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: <199812031659.LAA25618@adder.cs.Virginia.EDU>; from Greg Lindahl on Thu, Dec 03, 1998 at 11:59:08AM -0500 On Thu, Dec 03, 1998 at 11:59:08AM -0500, Greg Lindahl wrote: > If the compiler would make a symbol available based on the -mieee flag, > i.e. #define __mieee 0 or 1, then the include files for the math > library could pick routines which do or don't generate denorms. 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"); which works out better on the whole. 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? r~