From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14721 invoked from network); 16 Aug 1998 16:34:42 -0000 Received: from fhg.de (HELO mailgw2.fhg.de) (153.96.1.1) by mail2.redhat.com with SMTP; 16 Aug 1998 16:34:42 -0000 Received: by mailgw2.fhg.de (fhg.de); Sun, 16 Aug 1998 18:34:43 +0200 (MET DST) X-ENV: (mailgw2.fhg.de) scr@iis.fhg.de -> axp-list@redhat.com.VIA-SMTP X-BULK-CHECK-2-980816.18.34.08: root@iis.iis.fhg.de [153.96.172.2] Received: by mailgw2.fhg.de (fhg.de) with ESMTP; Sun, 16 Aug 1998 18:34:06 +0200 (MET DST) from iis.fhg.de Received: by iis.fhg.de with SMTP; Sun, 16 Aug 1998 18:34:02 +0200 (MET DST) from sunserv02.iis.fhg.de Received: from ew003 by sunserv02.iis.fhg.de (SMI-8.6/SMI-SVR4) id SAA21044; Sun, 16 Aug 1998 18:34:01 +0200 Sender: scr@iis.fhg.de Message-ID: <35D70AF3.41C67EA6@iis.fhg.de> Date: Sun, 16 Aug 1998 18:38:11 +0200 From: Stefan Schroepfer Organization: FHG-IIS X-Mailer: Mozilla 3.0 (X11; I; SunOS 4.1.3_U1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: RH5.1 axp floating point performance References: <35D42F6A.27DF@njcc.com> <35D43B4E.59E2B600@iis.fhg.de> <35D48F2C.F3C@njcc.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ken Hansen wrote: > > I apologize, my humor escaped at least one reader of this list - I was > simply indicating that the person who noticed the problem has two > choices: > Run RH 4.2 libraries and get an answer fast, and run the risk that > it MAY be incorrect., or > > run RH 5.1 libraries, and get an answer that is always accurate, > but takes longer to get at. Thanks for the additional clearification, but that's exactly that what I understood from your earlier reply (maybe I have to apologize for my bad english). > There is no switch/alternate flag to choose good/bad functions on > request > from one library... But a library designer could call the fast code where it is proven to produce correct results and call the slow code where the fast code is known to fail. In addition to that, the library designer could provide a way to call the fast code directly for those who know what they are doing (surely via an additional function name, not via obscure flags). > Would you really want a compiler that produced code that was *usually* > correct or *always* correct? I choose the latter, but that is me... O.k., an ANSI sqrt () always has to be correct (as far as data representation allows), but in general the precision needed for intermediary results depends on what they are used for. > Ken > khansen@njcc.com > > Stefan Schroepfer wrote: > > > > Ken Hansen wrote: > > > > > > > > > So, you can get a fast answer or a correct answer, it's your choice! > > > > Assuming that "could cause some inaccuracy" means: it depends on > > the value of the argument (on what else?), couldn't be a fallback > > implemented that calls the faster code if appropriate? > > > > Is the option "fast answer" built into the newer libs (let's say > > by calling __fast_sqrt () or something similar)? > > > > scr@iis.fhg.de