d = vec_extract(a, b)
Returns the value of element b from the vector a. This function uses the modulo arithmetic on b to determine the element number. For example, if b is out of range, the compiler uses b modulo the number of elements in the vector to determine the element position.
d | a | b |
---|---|---|
signed char | vector signed char | signed int |
unsigned char | vector bool char | |
vector unsigned char | ||
signed short | vector signed short | |
unsigned short | vector bool short | |
vector unsigned short | ||
signed int | vector signed int | |
unsigned int | vector bool int | |
vector unsigned int | ||
signed long long | vector signed long long | |
unsigned long long | vector bool long long | |
vector unsigned long long | ||
double | vector double |