Motorola DSP Developer's Kit    
log-r.asm

MATLAB Usage

Description

This function returns the natural logarithm elements of input vector X. The input vector X is a real vector

Input/Output

Input: Real vector X

Output: Real vector Y

Algorithm

Input:

Z in a1  (a2 = 0, a0 = 0)

Output:

Memory & Register

Memory allocation

X memory:

Y memory:

Register usage:

Status Register

The assembly function log-r.asm does not set explicitly any status registers/bits during the function execution.

Data Size Limit

The length of vector X can't be larger than the continuous available data memory size.

Data Range Limit

The value of input vector X must be between -1.0 and +1.0.

Precision

In the case of DSP563, precision is 16 bits.

In the case of DSP566, precision is 12 bits.


 interp-c.asm log-c.asm