Re: Simple/Fast Algorithm for binary logarithm in C (on ARM7)



Can anyone point to fixed-point logarithmic routines I could use
(resp. tailor to my needs)?

Good book with an idea on that :
Crenshaw "Math Toolkit for Real Time Programming" CMP Books 2000

I adapted it to 6502/FORTH but
http://www.embeddedforth.de Heft 9
is no longer free. But there was a preprint in
http://www.forth-ev.de/filemgmt_data/files/4d2004_1.pdf
( FORTH e.V. has now all issues of the magazine back to 1984
available
for download, http://www.forth-ev.de/filemgmt/viewcat.php?cid=2
but no good index yet ).
Both descriptions are in german.

Beyond that one would have to dig out literature on logarithmic
numbersystems. The best known published implementation for a
controller was FOCUS for the Z80 in assembler.
I think i have the description als pdf ( scan from book, bulky )
somewhere and the source typed in, but didn´t get to porting
it to 6502/FORTH yet.

MfG JRD
.



Relevant Pages