vec_rl
Purpose
Rotates each element of a vector left by a given number of bits.
Syntax
d=vec_rl(a, b)
Result and argument types
The following tables describe the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector signed char | vector signed char | vector signed char |
vector unsigned char | vector unsigned char | vector unsigned char |
vector signed short | vector signed short | vector signed short |
vector unsigned short | vector unsigned short | vector unsigned short |
vector signed int | vector signed int | vector signed int |
vector unsigned int | vector unsigned int | vector unsigned int |
When you call this built-in function, the following types are valid only when -qarch is set to target POWER8 processors.
d | a | b |
---|---|---|
vector signed long long | vector signed long long | vector signed long long |
vector unsigned long long | vector unsigned long long | vector unsigned long long |
Result value
Each element of the result is obtained by rotating the corresponding element of a left by the number of bits specified by the corresponding element of b.