vec_madds

Purpose

Returns a vector containing the results of performing a saturated multiply-high-and-add operation on each corresponding set of elements of three given vectors.

Syntax

d=vec_madds(a, b, c)

Result and argument types

The type of d, a, b, and c must be vector signed short.

Result value

For each element of the result, the value is produced in the following way: the values of the corresponding elements of a and b are multiplied. The value of the 17 most significant bits of this product is then added, using 16-bit-saturated addition, to the value of the corresponding element of c.