Implement undo XOR with right bitshift