Vector built-in functions
Individual elements of vectors can be accessed and manipulated by using the vector built-in functions. You must enable the vector support to use these built-in functions. This section provides description of the supported vector built-in functions.
This section uses pseudo code description to represent the built-in function syntax, as shown below:
d = builtin_name(a, b, c)
In the description,
d
represents the return value of the built-in function.a
,b
, andc
represent the arguments of the built-in function.builtin_name
is the name of the built-in function.
vector double vec_xl(long, double*)
is represented by d = vec_xl(a, b)
.Allowed data types for the return value and arguments of the built-in functions are provided in the tables after the description of the built-in functions.
Note: The tables only list the supported vector data types with the
vector
keyword. The same data types with the __vector
keyword,
which is the alternative spelling of vector
, are also supported.