vec_madd
Purpose
Returns a vector containing the results of performing a fused multiply-add operation on each corresponding set of elements of three given vectors.
Syntax
d=vec_madd(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 |
|---|---|---|---|
The same type as argument a |
vector signed short | The same type as argument a |
The same type as argument a |
| vector unsigned short | |||
| vector float | |||
| vector double | |||
| vector signed short | vector signed short | vector unsigned short | vector unsigned short |
| vector signed short | vector unsigned short | vector signed short | vector signed short |
Result value
The value of each element of
the result is the product of the values of the corresponding elements
of a and b,
added to the value of the corresponding element of c.