atomic: replace movq $0 with xorq
This commit is contained in:
parent
8b6e1c6342
commit
9c5d722f72
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue