Motorola DSP Developer's Kit    
log-c.asm

MATLAB Usage

Description

This function returns the natural logarithm elements of complex input vector X.

Input/Output

Input: Complex vector X

Output: Complex vector Y

Algorithm

If an absolute result is needed, the real data of the result should be scaled up by 32 and imaginary data of the result should be scaled up by 4. Please refer to the algorithms used in log-r.asm and angle-c.asm.

Memory & Register

Memory allocation:

In X memory:

ATANTAB stores the atan table

Y memory:

Register usage:

Status Register

The assembly function log-c.asm does not explicitly set 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.


 log-r.asm log10-r.asm