vec_mladd
Purpose
Returns a vector containing the results of performing a saturated multiply-low-and-add operation on each corresponding set of elements of three given vectors.
Syntax
d=vec_mladd(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 short | vector signed short | vector signed short | vector signed short |
| vector signed short | vector unsigned short | vector unsigned short | |
| vector unsigned short | vector signed short | vector signed short | |
| vector unsigned short | vector unsigned short | vector unsigned short | vector unsigned short |
Result value
The value of each element of
the result is the value of the least significant 16 bits of the product
of the values of the corresponding elements of a and b, added to the value of the corresponding
element of c.
The addition is performed using modular arithmetic.