vec_orc
Purpose
Performs a bitwise OR-with-complement operation of the input vectors.
Note: This built-in function
is valid when the -mcpu
option is set to target POWER8 processors,
or higher.
Syntax
d=vec_orc(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
| d | a | b |
|---|---|---|
| vector signed char | vector signed char | vector signed char |
| vector bool char | ||
| vector unsigned char | vector unsigned char | vector unsigned char |
| vector bool char | ||
| vector signed char | vector bool char | vector signed char |
| vector unsigned char | vector unsigned char | |
| vector bool char | vector bool char | |
| vector signed short | vector signed short | vector signed short |
| vector bool short | ||
| vector unsigned short | vector unsigned short | vector unsigned short |
| vector bool short | ||
| vector signed short | vector bool short | vector signed short |
| vector unsigned short | vector unsigned short | |
| vector bool short | vector bool short | |
| vector signed int | vector signed int | vector signed int |
| vector bool int | ||
| vector unsigned int | vector unsigned int | vector unsigned int |
| vector bool int | ||
| vector signed int | vector bool int | vector signed int |
| vector unsigned int | vector unsigned int | |
| vector bool int | vector bool int | |
| vector float | vector float | |
| vector signed long long | vector signed long long | vector signed long long |
| vector bool long long | ||
| vector unsigned long long | vector unsigned long long | vector unsigned long long |
| vector bool long long | ||
| vector signed long long | vector bool long long | vector signed long long |
| vector unsigned long long | vector unsigned long long | |
| vector bool long long | vector bool long long | |
| vector double | vector double | |
| vector float | vector float | vector bool int |
| vector float | ||
| vector double | vector double | vector bool long long |
| vector double |
Result value
Each bit of the result is set to the result of the bitwise operation (a |
~b) of the corresponding bits of
a and b. For 0 <= i
< 128, bit i of the result is set to 1 only if the ith bit of
a is 1 or the
ith bit of b is 0.