From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18159 invoked from network); 3 Dec 1998 17:03:25 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Dec 1998 17:03:25 -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 LAA23687 for ; Thu, 3 Dec 1998 11:59:50 -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 LAA11561; Thu, 3 Dec 1998 11:59:09 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.7.5/8.7.3) id LAA25618; Thu, 3 Dec 1998 11:59:08 -0500 (EST) Message-Id: <199812031659.LAA25618@adder.cs.Virginia.EDU> Subject: Re: Floating point problems To: rth@cygnus.com Date: Thu, 3 Dec 1998 11:59:08 -0500 (EST) Cc: axp-list@redhat.com In-Reply-To: <19981202164800.G11351@dot.cygnus.com> from "Richard Henderson" at Dec 2, 98 04:48:00 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > I have the impression that might be the function routines that are not > > written to NOT return denormals, for example exp of a large negative > > number could return a denormal. This should be changed. > > Possibly. > > OTOH, I would think only if we can determine that the caller > is not prepared for such a value. I do not know how best to > do this though. 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. #if defined(__mieee) #define sqrt sqrt #else #define sqrt sqrt_no_denorms #fi -- g