AND | arg1 | ||
0 | 1 | ||
arg2 | 0 | 0 | 0 |
1 | 0 | 1 |
Function Input | Result | Comments |
INT1AND(0,x) | 0 | 0 ANDed with any integer returns 0. |
INT1AND(-0,x) | 0 | -0 is mapped to 0 before ANDing it with the other argument. |
INT1AND(-64,64) | 64 | |
INT1AND(-64,66) | 64 | |
INT1AND(-1,127) | 127 | -1 is represented by all 1-bits, so it returns any number it is ANDed with. |
INT1AND(-128,-x) | -128 | -128 ANDed with any negative integer (except -0) returns -128. |