From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b79a29863eb727e7 X-Google-Attributes: gid111c93,public From: harley@pauillac.inria.fr (Robert Harley) Subject: Re: gcc vs Dec Unix c Date: 1998/01/13 Message-ID: <69foaf$m2i@news-rocq.inria.fr>#1/1 X-Deja-AN: 315529785 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Organization: I.N.R.I.A Rocquencourt Newsgroups: comp.os.linux.alpha cekim@ix.netcom.com writes: >PPRO 200 w/cos =10 minutes -120 billion cycles >ALpha 533 w/cos =65 minutes -2.08 trillion cycles I think everyone is missing the point here. You called cos() with some very large arguments. With small arguments the Alpha's software is twice as fast as the PPro's hardware. With large arguments, the Alpha slows down to a sixth the speed of the PPro. The reason is simple: the PPro gives wrong answers. Intel didn't bother to reduce mod pi properly. Example: cos(1.0) a million times: answer time error Alpha 0.54030230586813976501 0.344 4.76 E-17 PPro 0.54030230586813976501 0.620 4.76 E-17 cos(123456789.0) a million times: answer time error Alpha -0.16283121219902166321 3.925 -1.00 E-17 PPro -0.16283121220058985323 0.700 -1.57 E-12 Note that the error on the PPro is 100000 times too big for double precision. Bye, Rob. PS: Note that there is lots of room to optimise the software cos() e.g., I doubled the speed in one application. The PPro's hardware obviously cannot be optimised by the user.