Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de>
To: axp-list@redhat.com
Subject: Re: An sqrt() experiment
Date: Thu, 28 Jan 1999 09:17:53 +0100	[thread overview]
Message-ID: <99012809230500.00290@Othello> (raw)
In-Reply-To: 199901262251.OAA28689@netcom6.netcom.com

On Tue, 26 Jan 1999, Munagala V. S. Ramanath wrote:
>> This is a bit confusing. Already for some time, the "official" libm on
>> AXP/Linux **IS** based on fdlibdm !!
>> 
>> Especially, the very old sqrt, was that single-bit-a-time version from libfdm,
>> later it was replaced by an assembler version of the method you cite. libffm
>> slightly improves on that. It seems strange, that you get near those figures
>> with your C version.  It seems likely that your timing is governed by other
>> factors, but not (really) sqrt.
>
>    My C routine is not the same as the code in fdlibm; it is derived
>    from comments in the fdlibm code that discussed Newtons method; it
>    uses floating point divides but since the Alpha was supposed to be
>    good at floating point arithmetic, I decided to give it a try. My
>    code also ignores all the special cases like 0, +-inf, +-NaN etc.
>    as noted in my comments in the code.
>

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 version
was used and was known to be "dog slow".


Joachim


  parent reply	other threads:[~1999-01-28  8:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-26 22:51 An sqrt() experiment Munagala V. S. Ramanath
1999-01-27 18:30 ` Jonathan L Dubois
1999-01-28  8:17 ` Joachim Wesner [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-01-28 15:18 Munagala V. S. Ramanath
1999-01-26 22:14 Munagala V. S. Ramanath
1999-01-26 22:07 Munagala V. S. Ramanath
1999-01-26 19:39 Munagala V. S. Ramanath
1999-01-26 20:05 ` Andrei A. Dergatchev
1999-01-26 20:28   ` Andrei A. Dergatchev
1999-01-26 21:20 ` Joachim Wesner
1999-01-26 22:15 ` Wes Bauske
1999-01-29  6:28 ` Richard Henderson
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