C Programming - Exchanging Corresponding fields of integer

Exchange the contents of the variable x and y wherever the mask bit mi=1

x^=y
y^=(x&m)
x^=y

Labels:


About this entry