vec_mergeh

Purpose

Merges the most significant halves of two vectors.

Syntax

d=vec_mergeh(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 char The same type as argument a
vector signed char
vector unsigned char
vector bool short
vector signed short
vector unsigned short
vector bool int
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 0. The even-numbered elements of the result are taken, in order, from the high elements of a. The odd-numbered elements of the result are taken, in order, from the high elements of b.



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