vec_mul

Purpose

Returns a vector containing the results of performing a multiply operation using the given vectors.

This built-in function is valid only when -qarch is set to target POWER7® processors or higher.

Note: For integer and unsigned vectors, this function emulates the operation.

Syntax

d=vec_mul(a, b)

Result and argument types

The following table describes the types of the returned value and the function arguments.

Table 1. Result and argument types
d a b
The same type as argument a vector signed char The same type as argument a
vector unsigned char
vector signed short
vector unsigned short
vector signed int
vector unsigned int
vector signed long long
vector unsigned long long
vector float
vector double

Result value

This function multiplies corresponding elements in the given vectors and then assigns the result to corresponding elements in the result vector.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us