vec_mergeh
Purpose
Merges the most significant halves of two vectors.
This built-in function is valid only when you include the altivec.h file.
Syntax
d=vec_mergeh(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
| 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.


