vec_srv
Purpose
Right-shifts the elements of a given vector by a given number of bits.
This built-in function is valid only when -qarch(-mcpu) is set to utilize the POWER9™ technology and the altivec.h file is included.
Syntax
d=vec_srv(a, b)
Result and argument types
The result and arguments are all of the vector unsigned char type.
Result value
Suppose the following information. Element i of the result vector contains the
same bit string as from bit 8-Si to bit
15-Si of Xi, inclusive.
- Si (0<=i<=15) denotes the value in the three least-significant bits of element i of b.
- X0 denotes the value of the halfword formed by concatenating a zero byte and element 0 of a.
- Xi (1<=i<=15) denotes the value of the halfword formed by concatenating elements i and i+1 of a.