From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: Why Alpha? (aka: is it worth it?)
Date: Sun, 24 Jan 1999 19:43:57 +0000 [thread overview]
Message-ID: <36AB77FD.51815D0A@paralleldata.com> (raw)
In-Reply-To: 199901241619.IAA13824@netcom19.netcom.com
Munagala V. S. Ramanath wrote:
>
> > This is somewhat what I do though in my own code. I implement
> > a sqrt() as a table lookup plus twiddle so I don't have to
> > rely on anyone's sqrt() function call. What I do is not good
> > to the ULP (unit of least precision, ie., last bit),
> > but good enough for my algorithm. It is also faster than any
> > silicon implementation I know of. Doing that sort of thing
> > requires a good understanding of how your algorithm works.
> > Anyway, my code is about twice as fast on a 533LX vs a PII400.
>
> That's great and exactly the kind of experience I was hoping for.
> How much faster on the 533LX is your code compared to the native
> silicon sqrt() on the PII400 ?
>
Never ran just that code.
> Could you post the code or is it proprietary ?
>
> (Knuth also has a table lookup based implementation for a variety of
> the transcendental functions in Metafont and may be a useful
> starting point for people trying this approach.)
>
It's embbeded in the application so it would be
difficult to just show that. The basic idea is
that if you know the range of sqrt() input values
your code will generate, build a table of values
sampled in that space. Then all you need is some
sort of twiddle. Those depend on how good you need
the answer to be. One simple form is an interpolation
between values. You could look at the math libs to
see how they hone in on a value also. If Knuth has
it in Metafont, it should be reasonable. He probably
did it for the same reason I did.
Be careful with recursive/iterative codes because they
can be sensitive to errors.
Wes
next prev parent reply other threads:[~1999-01-24 19:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-24 16:19 Why Alpha? (aka: is it worth it?) Munagala V. S. Ramanath
1999-01-24 19:43 ` Wes Bauske [this message]
1999-01-25 1:38 ` Daniel J. Frasnelli
-- strict thread matches above, loose matches on Subject: below --
1999-01-26 19:06 Re:Why Alpha ? (aka:is it worth it ?) Luigi Cavallo
1999-01-26 19:29 ` Why " Wes Bauske
1999-01-24 3:09 Why Alpha? (aka: is it worth it?) Munagala V. S. Ramanath
1999-01-24 5:36 ` Wes Bauske
1999-01-23 23:51 Munagala V. S. Ramanath
1999-01-24 0:06 ` Michal Jaegermann
1999-01-24 0:22 ` Daniel J. Frasnelli
1999-01-24 2:58 ` Wes Bauske
1999-01-24 2:11 ` Rich Payne
1999-01-23 21:49 Adam Wiggins
1999-01-23 22:13 ` warp
1999-01-23 22:18 ` Andrei A. Dergatchev
1999-01-23 22:38 ` Daniel J. Frasnelli
1999-01-24 7:31 ` norvierk
1999-01-25 14:39 ` Adam C. Powell, IV
1999-01-25 17:07 ` Daniel J. Frasnelli
1999-01-25 17:56 ` Adam C. Powell, IV
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