vec_mulo
Purpose
Returns a vector containing the results of multiplying every second set of corresponding elements of the given vectors, beginning with the second element.
Syntax
d=vec_mulo(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 short | vector signed char | vector signed char |
| vector unsigned short | vector unsigned char | vector unsigned char |
| vector signed int | vector signed short | vector signed short |
| vector unsigned int | vector unsigned short | vector unsigned short |
Note: The following types are valid when the -mcpu option is set to target POWER8 processors, or higher.
| d | a | b |
|---|---|---|
| vector signed long long | vector signed int | vector signed int |
| vector unsigned long long | vector unsigned int | vector unsigned int |
Result value
Assume that the elements of
each vector are numbered beginning with 0. For each element n of
the result vector, the value is the product of the value of element
2n+1 of a and the value of element 2n+1
of b.