vec_mergee

Purpose

Merges the values of even-numbered elements of two vectors.

Note: This built-in function is valid when the -mcpu option is set to target POWER8 processors, or higher.

Syntax

d=vec_mergee(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 bool int The same type as argument a
vector signed int
vector unsigned int
vector bool long long
vector signed long long
vector unsigned long long
vector float
vector double

Result value

Assume that the elements of each vector are numbered beginning with zero. The even-numbered elements of the result are obtained, in order, from the even-numbered elements of a. The odd-numbered elements of the result are obtained, in order, from the even-numbered elements of b.