vec_mulh: Vector Multiply High

d = vec_mulh(a, b)

Returns a vector containing the most significant ("high") half of results of performing a multiply operation using the given vectors. This function multiplies corresponding elements in the given vectors, the most significant half of the double element-sized product is assigned to the result of the corresponding elements in the result vector.

Table 1. Vector Multiply High
d a b
vector unsigned char vector unsigned char vector unsigned char
vector signed char vector signed char vector signed char
vector unsigned short vector unsigned short vector unsigned short
vector signed short vector signed short vector signed short
vector unsigned int vector unsigned int vector unsigned int
vector signed int vector signed int vector signed int