Motorola DSP Developer's Kit |
Motorola DSP Developer's Kit |
Motorola DSP Developer's Kit | ![]() ![]() |
X = mot###_min(X, Y)
Input/Output
Input: Vector X (real data), Vector Y (real data)
Output: Vector X (smallest element taken from X or Y)
Algorithm
#define IN1 x:$0 #define IN2 y:$0 #define OUT x:$0 MinValue = X[0]; for(i=1; i<size; i++) { if(X[i] > Y[i]) { X[i] = Y[i]; } }
Memory & Register
X memory IN1 start address of location of input real vector X
Y memory IN2 start address of location of input real vector Y
X memory OUT start address of location of output real vector
Register R7 stores the number of items in the input array
Status Register
The assembly function min-2r.asm does not explicitly set any status registers/bits during the function execution.
Data Size Limit
The total size of all vectors can't be larger than the continuous available data memory size.
Data Range Limit
The value of input vectors 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
![]() | min-1c.asm | min-2c.asm | ![]() |