Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stefan Schroepfer <scr@iis.fhg.de>
To: axp-list@redhat.com
Subject: Re: RH5.1 axp floating point performance
Date: Sun, 16 Aug 1998 18:38:11 +0200	[thread overview]
Message-ID: <35D70AF3.41C67EA6@iis.fhg.de> (raw)
In-Reply-To: 35D48F2C.F3C@njcc.com

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


  parent reply	other threads:[~1998-08-16 16:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-13 17:12 RH5.1 axp floating point performance Cooperberg, David
1998-08-14  1:26 ` Michal Jaegermann
1998-08-14  2:06 ` Wes Bauske
1998-08-14 12:45   ` Harvey J. Stein
1998-08-14 19:52     ` Wes Bauske
1998-08-14  3:01 ` Alvin Starr
1998-08-14 12:36   ` Ken Hansen
     [not found]     ` <35D43B4E.59E2B600@iis.fhg.de>
     [not found]       ` <35D48F2C.F3C@njcc.com>
1998-08-16 16:38         ` Stefan Schroepfer [this message]
1998-08-16 18:44           ` Richard Henderson
1998-08-17  9:43             ` Stefan Schroepfer
1998-08-14  8:46 ` Stefan Schroepfer
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