vec_msums
Purpose
Returns a vector containing the results of performing a saturated multiply-sum operation using the given vectors.
Syntax
d=vec_msums(a, b, c)Result and argument types
The following table describes the types of the returned value and the function arguments.
| d | a | b | c |
|---|---|---|---|
| vector signed int | vector signed short | vector signed short | vector signed int |
| vector unsigned int | vector unsigned short | vector unsigned short | vector unsigned int |
Result value
For each element n of
the result vector, the value is obtained in the following way: multiply
element p of a by element p of b,
where p is from 2n to 2n+1;
and then add the sum of these products to element n of c.
All additions are performed by using 32-bit saturated arithmetic.