vec_mergeo

Purpose

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

This built-in function is valid only when you include the altivec.h file.

Syntax

d=vec_mergeo(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

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 odd-numbered elements of a. The odd-numbered elements of the result are obtained, in order, from the odd-numbered 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