* fast sqrt routine
@ 1998-10-06 12:08 Kazushige Goto
1998-10-10 3:03 ` Kazushige Goto
0 siblings, 1 reply; 2+ messages in thread
From: Kazushige Goto @ 1998-10-06 12:08 UTC (permalink / raw)
To: axp-list
Hi,
I make a fast sqrt routine for 21164 which runs as fast as DEC's
libm(a little bit faster). This souce also includes various
exceptional handling(NaN, +-Inf and Subnormal(Not Emulation!, it runs
as fast as glibc's assembler routine)).
This is preliminary source, because of accuracy. Although relative
error is within 2 ulp(same as libffm's sqrt routine), it shows a
little bit WORSE than libffm's. Now I'm trying to improve accuracy.
Does anyone know how to make "correct" table?
If you're interested in, you can find at
ftp://ftp.eni.co.jp/.2/Linux-Alpha-JP/ftp.statabo.rim.or.jp/libffm/sqrt-test.tar.gz
(file size is about 4kB)
Note, I'll delete this file within 1 week.
Thanks,
goto@statabo.rim.or.jp
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fast sqrt routine
1998-10-06 12:08 fast sqrt routine Kazushige Goto
@ 1998-10-10 3:03 ` Kazushige Goto
0 siblings, 0 replies; 2+ messages in thread
From: Kazushige Goto @ 1998-10-10 3:03 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: Text/Plain, Size: 684 bytes --]
Hi,
From: Kazushige Goto <goto@statabo.rim.or.jp>
Subject: fast sqrt routine
goto> I make a fast sqrt routine for 21164 which runs as fast as DEC's
goto> libm(a little bit faster). This souce also includes various
goto> exceptional handling(NaN, +-Inf and Subnormal(Not Emulation!, it runs
goto> as fast as glibc's assembler routine)).
I improved sqrt routine and it's faster than last week's version.
(55% faster than glibc's assembler routine, 35% faster than libffm's
sqrt, 20% faster than last week's version)
Now it's a little bit more accurate than libffm's sqrt. If you want
precise value, you must add a few instructions with slowness.
Thanks,
goto@statabo.rim.or.jp
[-- Attachment #2: fastsqrt.tar.gz --]
[-- Type: Application/Octet-Stream, Size: 4662 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-10-10 3:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-06 12:08 fast sqrt routine Kazushige Goto
1998-10-10 3:03 ` Kazushige Goto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox