vec_vgbbd
Purpose
Performs a gather-bits-by-bytes operation on the given vector.
This built-in function is valid only when you include the altivec.h file.
Syntax
d=vec_vgbbd(a)
Result and argument types
The following table describes the types of the returned value and the function arguments.
| d | a |
|---|---|
| vector unsigned char | vector unsigned char |
| vector signed char | vector signed char |
Result value
Each doubleword element of the result is set as follows:
Let x(i) (0 <= i < 8) denote the byte elements of the corresponding input doubleword element, with x(7) as the most significant byte. For each pair of i and j (0 <= i < 8, 0 <= j < 8), the jth bit of the ith byte element of the result is set to the value of the ith bit of the jth byte element of the input.


