#Pyth, 5 bytes
Pyth, 5 bytes
._.&E
Notice the cute face ._.
#How?
How?
._.&EQ - Q means input and is implicit. .& - Bitwise AND between: E - The second input and Q - The first input. ._ - Sign. 0 if it equals 0, 1 otherwise.
If inconsistent values are allowed:
#Pyth, 3 bytes
Pyth, 3 bytes
No cute face this time ._.
.&E