vec_mulh
Purpose
Multiplies the elements of the given vectors and places the high half of each product in the target vector.
Note: This built-in function
is valid only when the -mcpu option is set to target Power10 processors.
Syntax
d=vec_mulh(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
| d | a | b |
|---|---|---|
| vector signed int | vector signed int | vector signed int |
| vector unsigned int | vector unsigned int | vector unsigned int |
| vector signed long long | vector signed long long | vector signed long long |
| vector unsigned long long | vector unsigned long long | vector unsigned long long |
Result value
Each element of d
is the high half of the product of the corresponding elements
of a and b.