Returns a vector by concatenating a and b, and then left-shifting the result vector by multiples of 8 bytes. c specifies the offset for the shifting operation.
d=vec_sldw(a, b, c)
The following table describes the types of the returned value and the function arguments.
d | a | b | c |
---|---|---|---|
vector4double | vector4double | vector4double | int, a value in 0 - 3 |
After left-shifting the concatenated a and b by multiples of 8 bytes specified by c, the function takes the four leftmost 8-byte values and forms the result vector.
Concat = ( a[0], a[1], a[2], a[3],
b[0], b[1], b[2], b[3] )
d[0] = Concat[c]
d[1] = Concat[c+1]
d[2] = Concat[c+2]
d[3] = Concat[c+3]
a = (10.0, 20.0, 30.0, 40.0)
b = (50.0, 60.0, 70.0, 80.0)
c = 2
d: (30.0, 40.0, 50.0, 60.0)