Special Arithmetic Functions
Scalar arithmetic
- ABS Absolute value
- SQUR Square
- POLY Polynomial evaluation
Vector arithmetic acceleration
- Each instruction operates on one element at at time
- ABDIST Absolute difference of vectors
- SQDIST Squared distance between vectors
- SQURA Sum of squares of vector elements
- SQURS Difference of squares of vector elements
rptz a,#39 ; zero accumulator a, repeat next ; instruction over 40 elements
squra *ar2+,a ; a += x(n)^2