d = vec_permi(a, b, c)
Returns a vector by permuting and combining the two eight-byte-long vector elements in a and b based on the value of c.
If you use a[0] and a[1] to represent the first and second eight-byte-long elements in a, and likewise use b[0] and b[1] for elements in b, this function determines the elements in the result vector based on the binary value of c.
d | a | b | c |
---|---|---|---|
vector bool long long | vector bool long long | vector bool long long | 0 - 3 |
vector signed long long | vector signed long long | vector signed long long | |
vector unsigned long long | vector unsigned long long | vector unsigned long long | |
vector double | vector double | vector double |