Motorola DSP Developer's Kit    
sqrt-pr.asm

MATLAB Usage

Description

This function returns square root of the elements of input vector X

Input/Output

Input: Vector X (elements of vector X are positive)

Output: Vector Y

Algorithm

Full 23(15) bit precision square root routine using a successive approximation technique.

Memory & Register

Register usage:

Status Register

The assembly function sqrt-pr.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 23 bits.

In the case of DSP566, precision is 15 bits.


 sqrt-sr.asm sqrt-c.asm