int and(int x, int y) { return x & y; } int xor(int x, int y) { return x ^ y; } int or(int x, int y) { return x | y; } int not(int x) { return ~x; }