From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,6efc7adbcf3cc73 X-Google-Attributes: gid111c93,public From: Joachim Wesner Subject: Re: Fast Compilers for Linux Date: 1998/05/22 Message-ID: <3565C455.56346615@frankfurt.netsurf.de>#1/1 X-Deja-AN: 355627614 Content-Transfer-Encoding: 7bit References: <3565A475.3940EB48@frankfurt.netsurf.de> <6k4aoj$j12@news1.newsguy.com> Content-Type: text/plain; charset=us-ascii Organization: OMNILINK -- your link to the Net MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Greg Lindahl wrote: > > Joachim Wesner 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