Motorola DSP Developer's Kit | ![]() ![]() |
Y = mot###_sqrt(X)
Description
This function returns square root of the elements of input vector X
Input/Output
Input: Vector X (elements of vector X are positive)
Algorithm
Full 23(15) bit precision square root routine using a successive approximation technique.
for (i=0; i<size; i++) { Y[i] = Sqrt_sr (X[i]); }
Memory & Register
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 | ![]() |