From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12765 invoked from network); 28 Jan 1999 08:24:23 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 28 Jan 1999 08:24:23 -0000 Received: from beach.frankfurt.netsurf.de (root@beach.frankfurt.netsurf.de [194.64.181.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id DAA21541 for ; Thu, 28 Jan 1999 03:23:45 -0500 Received: from Othello (deck-163.frankfurt.netsurf.de [194.64.181.195]) by beach.frankfurt.netsurf.de (8.8.5/8.8.5) with SMTP id JAA25466 for ; Thu, 28 Jan 1999 09:23:44 +0100 (MET) From: Joachim Wesner To: axp-list@redhat.com Subject: Re: An sqrt() experiment Date: Thu, 28 Jan 1999 09:17:53 +0100 X-Mailer: KMail [version 0.7.9] Content-Type: text/plain References: <199901262251.OAA28689@netcom6.netcom.com> MIME-Version: 1.0 Message-Id: <99012809230500.00290@Othello> Content-Transfer-Encoding: quoted-printable On Tue, 26 Jan 1999, Munagala V. S. Ramanath wrote: >> This is a bit confusing. Already for some time, the "official" libm on= =0D >> AXP/Linux **IS** based on fdlibdm !!=0D >> =0D >> Especially, the very old sqrt, was that single-bit-a-time version from= libfdm,=0D >> later it was replaced by an assembler version of the method you cite. = libffm=0D >> slightly improves on that. It seems strange, that you get near those f= igures=0D >> with your C version. It seems likely that your timing is governed by = other=0D >> factors, but not (really) sqrt.=0D >=0D > My C routine is not the same as the code in fdlibm; it is derived=0D > from comments in the fdlibm code that discussed Newtons method; it=0D > uses floating point divides but since the Alpha was supposed to be=0D > good at floating point arithmetic, I decided to give it a try. My=0D > code also ignores all the special cases like 0, +-inf, +-NaN etc.=0D > as noted in my comments in the code.=0D >=0D YEP, what I wanted to say, that the latest "official" Alpha libm sqrt is ALREADY based on those comments you used too. This change was done by Davids Mousberger already some time ago, so the differences should not= be so large !!?? Only in the very *early* times of AXP/Linux, the single-bit ve= rsion was used and was known to be "dog slow". Joachim