Motorola DSP Developer's Kit |
Motorola DSP Developer's Kit |
Motorola DSP Developer's Kit | ![]() ![]() |
y = mot###_sum(X)
Input/Output
Output: y (the sum of the element of X)
Algorithm
y = 0; for(i=0; i<size; i++) { y += X[i]; }
Memory & Register
Status Register
The assembly function sum-r.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.
Performance Limit
![]() | sqrt-c.asm | sum-c.asm | ![]() |