vec_splat
Purpose
Returns a vector that has all of its elements set to a given value.
Syntax
d=vec_splat(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector bool char | vector bool char | 0 - 15 |
vector signed char | vector signed char | 0 - 15 |
vector unsigned char | vector unsigned char | 0 - 15 |
vector bool short | vector bool short | 0 - 7 |
vector signed short | vector signed short | 0 - 7 |
vector unsigned short | vector unsigned short | 0 - 7 |
vector bool int | vector bool int | 0 - 3 |
vector signed int | vector signed int | 0 - 3 |
vector unsigned int | vector unsigned int | 0 - 3 |
vector bool long long | vector bool long long | 0 - 1 |
vector signed long long | vector signed long long | 0 - 1 |
vector unsigned long long | vector unsigned long long | 0 - 1 |
vector float | vector float | 0 - 3 |
vector double | vector double | 0 - 1 |
Result value
The value of each element of the result is the value of the element of a specified by b.