vec_nand
Purpose
Performs a bitwise negated-and operation on the input vectors.
This built-in function is valid only when -qarch is set to target POWER8® processors.
Syntax
d=vec_nand(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector unsigned long long | vector unsigned long long | vector unsigned long long |
vector signed long long | vector signed long long | vector signed long long |
vector unsigned long long | vector unsigned long long | vector bool long long |
vector signed long long | vector signed long long | vector bool long long |
vector unsigned long long | vector bool long long | vector unsigned long long |
vector signed long long | vector bool long long | vector signed long long |
vector bool long long | vector bool long long | vector bool long long |
vector unsigned int | vector unsigned int | vector unsigned int |
vector signed int | vector signed int | vector signed int |
vector unsigned int | vector unsigned int | vector bool int |
vector signed int | vector signed int | vector bool int |
vector unsigned int | vector bool int | vector unsigned int |
vector signed int | vector bool int | vector signed int |
vector bool int | vector bool int | vector bool int |
vector unsigned short | vector unsigned short | vector unsigned short |
vector signed short | vector signed short | vector signed short |
vector unsigned short | vector unsigned short | vector bool short |
vector signed short | vector signed short | vector bool short |
vector unsigned short | vector bool short | vector unsigned short |
vector signed short | vector bool short | vector signed short |
vector bool short | vector bool short | vector bool short |
vector unsigned char | vector unsigned char | vector unsigned char |
vector signed char | vector signed char | vector signed char |
vector unsigned char | vector unsigned char | vector bool char |
vector signed char | vector signed char | vector bool char |
vector unsigned char | vector bool char | vector unsigned char |
vector signed char | vector bool char | vector signed char |
vector bool char | vector bool char | vector bool char |
vector float | vector float | vector float |
vector float | vector bool int | vector float |
vector float | vector float | vector bool int |
vector double | vector double | vector double |
vector double | vector bool long long | vector double |
vector double | vector double | vector long long |
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 0 only if the ith bit of a and b are 1.