Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | 2181 asm program for Logarithm & other lib functions

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

2181 asm program for Logarithm & other lib functions - jsc_1978 - Oct 28 1:11:00 2003



Hi,

I am using the ADSP-2181 EZ-KIT Lite.

Can anyone direct me to an asm program that calculates log base 10?
Also, I heard that ADI offers asm code for all of their library
functions. Is this true? I haven't had any luck calling C
functions from assembly programs.

Thanks,
Jessica





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: 2181 asm program for Logarithm & other lib functions - Mike Rosing - Oct 28 3:13:00 2003

On Tue, 28 Oct 2003, jsc_1978 wrote:

> I am using the ADSP-2181 EZ-KIT Lite.
>
> Can anyone direct me to an asm program that calculates log base 10?
> Also, I heard that ADI offers asm code for all of their library
> functions. Is this true? I haven't had any luck calling C
> functions from assembly programs.

It's easier to do log base 2 and then multiply by log base 10 of 2.
Since you already store data in base 2, you just need to find log base 2
(fractional part) and add the exponent to get log base 2 of the number.
Find "Computer Approximations" by Hart for lots of coefficients. You can
get any level of accuracy you need.

Patience, persistence, truth,
Dr. mike




(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )