vec_mergeh: Vector Merge High

d = vec_mergeh(a, b)
Merges the most significant ("high") halves of two vectors.
Figure 1. Merge 2 high-order elements (32-bit)
graphic

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 elements in the most significant half of a. The odd-numbered elements of the result are taken, in order, from the elements in the most significant half of b.

Table 1. Vector Merge High
d a b
vector bool char vector bool char vector bool char
vector signed char vector signed char vector signed char
vector unsigned char vector unsigned char vector unsigned char
vector bool short vector bool short vector bool short
vector signed short vector signed short vector signed short
vector unsigned short vector unsigned short vector unsigned short
vector bool int vector bool int vector bool int
vector signed int vector signed int vector signed int
vector unsigned int vector unsigned int vector unsigned int
vector bool long long vector bool long long vector bool long long
vector signed long long vector signed long long vector signed long long
vector unsigned long long vector unsigned long long vector unsigned long long
vector double vector double vector double