atomic: replace movq $0 with xorq

This commit is contained in:
Michael Shaw 2024-07-05 05:51:11 -04:00
commit 9c5d722f72

View file

@ -10,7 +10,7 @@ atomic_cmpxchg:
/* if ZF is set, the exchange was successful */
jnz nz
movq $0, %rax
xorq %rax, %rax
ret
nz:
movq $1, %rax