Is the XOR faster?

So the xor is faster (usually, depends on how it encodes). It gets much worse if you have conditional flags and you want that move/xor to set the zero flag, you may have to burn the right instruction (on some processors the mov does not change the flags).
For More Information Please Refer:


You May Also Like to Read: