🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math.num-analysis
Article #811

Re: Request - Fast Exp/Log C routines

#811
From: M. Donald Frederick
Date: Fri, 11 Dec 1992 22:49
28 lines
1990 bytes
In article <1992Dec7.034240.27779@trl.oz.au>, peter@gort.trl.OZ.AU (Peter K. Campbell) writes:
|> Hello out there.  We have a C program here which the profiler tells us
|> is making extensive use of exp & log functions.  Seeing as it takes
|> several days to run on a Sun Sparcstation & several hours on a Cray
|> Y-MP, we are looking for a quicker implementation of the general
|> exp/log algorithm than cc or gcc provides.
|> 
|> So, would anyone out there know of any C implementation of a fast,
|> general purpose exp/log (e.g. table lookup with a few iterations for
|> fine tuning), available publicly or in a book?  Or perhaps a
|> description of a general algorithm that I can implement in C without
|> too many problems?
|> 
|> Thanks in advance.
|> 
|> Peter K. Campbell
|> p.campbell@trl.oz.au

Take a look at "Table-Driven implementation of the exponential function for
IEEE floating-point arithmetic", Ping Tak Peter Tang, ACM Trans. Math. Softw.,
Vol. 15, No. 2 ( June 1989) pp144-157.

------------------------------------------------------------------------
        Donald Frederick       |      Office of Academic Computing
        frederik@uci.edu       |      University of California, Irvine
        frederik@UCI.BITNET    |      Irvine, CA  92717
        (714) 725-3200         |      FAX (714) 725-2069
-----------------------------------------------------------------------
Technical Details
Message-ID: <2B291AF2.625@news.service.uci.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!usc!news.service.uci.edu!pollux.acs.uci.edu!frederik
References: <1992Dec7.034240.27779@trl.oz.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!usc!news.service.uci.edu!pollux.acs.uci.edu!frederik
From: frederik@pollux.acs.uci.edu (M. Donald Frederick)
Subject: Re: Request - Fast Exp/Log C routines
Nntp-Posting-Host: pollux.acs.uci.edu
Message-ID: <2B291AF2.625@news.service.uci.edu>
Newsgroups: sci.math.num-analysis
Reply-To: frederik@pollux.acs.uci.edu (M. Donald Frederick)
Organization: University of California, Irvine
Keywords: exp, log, fast, C
Lines: 28
References: <1992Dec7.034240.27779@trl.oz.au>
Date: 11 Dec 92 22:49:22 GMT