From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3236 invoked from network); 24 Jan 1999 16:47:08 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 24 Jan 1999 16:47:08 -0000 Received: from netcom19.netcom.com (ram@netcom19.netcom.com [192.100.81.132]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA27181 for ; Sun, 24 Jan 1999 11:19:44 -0500 Received: (from ram@localhost) by netcom19.netcom.com (8.8.5-r-beta/8.8.5/(NETCOM v1.02)) id IAA13824 for axp-list@redhat.com; Sun, 24 Jan 1999 08:19:42 -0800 (PST) Date: Sun, 24 Jan 1999 08:19:42 -0800 (PST) From: "Munagala V. S. Ramanath" Message-Id: <199901241619.IAA13824@netcom19.netcom.com> To: axp-list@redhat.com Subject: Re: Why Alpha? (aka: is it worth it?) > This is somewhat what I do though in my own code. I implement > a sqrt() as a table lookup plus twiddle so I don't have to > rely on anyone's sqrt() function call. What I do is not good > to the ULP (unit of least precision, ie., last bit), > but good enough for my algorithm. It is also faster than any > silicon implementation I know of. Doing that sort of thing > requires a good understanding of how your algorithm works. > Anyway, my code is about twice as fast on a 533LX vs a PII400. That's great and exactly the kind of experience I was hoping for. How much faster on the 533LX is your code compared to the native silicon sqrt() on the PII400 ? Could you post the code or is it proprietary ? (Knuth also has a table lookup based implementation for a variety of the transcendental functions in Metafont and may be a useful starting point for people trying this approach.) Ram