From: Joachim Wesner <joachim.wesner@frankfurt.netsurf.de>
Subject: Re: Fast Compilers for Linux
Date: 1998/05/22 [thread overview]
Message-ID: <3565C455.56346615@frankfurt.netsurf.de> (raw)
In-Reply-To: 6k4aoj$j12@news1.newsguy.com
Greg Lindahl wrote:
>
> Joachim Wesner <joachim.wesner@frankfurt.netsurf.de> writes:
>
> > My measured execution time on a LX 533 (1 tick ~ 2 ns) (all routines
> > were tested with random arguments from 0 to x)
> >
> > 0..0.3 0..10 0..300
> >
> > actual libm
> > sin 0.18 us 0.45 us 0.51 us
>
> Do you have any idea how fast the Digital Unix routines are? I think
> you are doing quite well with your routine, I'm just curious if you
> have gotten "the right answer" yet. I'll personally buy you a beer if
> you get this into libm ;-) (and Goto already gets beer, of course...)
>
> > HOWEVER
> >
> > **Unfortunatelly**, a "real" coprocessor like in a Pentium can still
> > keep the competition with those numbers and it's even more accurate !
>
> I thought that the Pentium hardware used a bad reduction algorithm
> which really sucks for large arguments?
Is it ?? I thought/hoped that Intel extended 10 byte precision is pretty
OK, I usually use it as a reference to test the other routines for
accuracy for *small* arguments and it seems pretty consistent. HOWEVER,
I did not yet try what happens for VERY large arguments.
I real wonder why the libdm reduction routine in the old libm is so
complex, it's way larger than the approximation code. I think I also
will have to upgrade my argument reduction a bit, in the moment it uses
an extended PI value with ~ 84 significant bits, I would like to go to
up to ~ 144 bits (2.5 doubles) to be on the save side. This should only
add around 10 cycles. However, I only have PI printed up to 40 octal
digits, somebody knows where I could get PI up to ~ 55 octal or 40 hex
digits ?? (NO decimal values please, I would first need to write an
extended precision version of printf).
I've now started to modify the cray sin routine to run under AXP linux,
I think I will have the result tomorrow and will see how its perfomance
fits here.
Joachim
next prev parent reply other threads:[~1998-05-22 4:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-08 4:00 Fast Compilers for Linux James Sternberg
1998-05-08 4:00 ` James D. Freels
1998-05-08 4:00 ` Dr. Ram Samudrala
1998-05-10 4:00 ` James Sternberg
1998-05-09 4:00 ` Toon Moene
1998-05-09 4:00 ` James D. Freels
1998-05-09 4:00 ` Toon Moene
1998-05-20 4:00 ` Matt Kennel
1998-05-21 4:00 ` Toon Moene
1998-05-21 4:00 ` Greg Lindahl
1998-05-21 4:00 ` John Lyon <SPP>
1998-05-21 4:00 ` Greg Lindahl
1998-05-22 4:00 ` John Lyon <SPP>
1998-05-22 4:00 ` Joachim Wesner
1998-05-22 4:00 ` Greg Lindahl
1998-05-22 4:00 ` Joachim Wesner [this message]
1998-05-22 4:00 ` Andi Kleen
1998-05-23 4:00 ` Michal Jaegermann
1998-05-23 4:00 ` James H. Cloos Jr.
1998-05-25 4:00 ` Huw Davies
1998-05-22 4:00 ` Joachim Wesner
1998-05-22 4:00 ` Fast Cray libm on axp/Linux, was " Joachim Wesner
1998-05-22 4:00 ` Greg Lindahl
1998-05-23 4:00 ` Fast Cray libm on axp/Linux, more results Joachim Wesner
1998-05-09 4:00 ` Fast Compilers for Linux Toon Moene
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