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 */
|
/* if ZF is set, the exchange was successful */
|
||||||
jnz nz
|
jnz nz
|
||||||
movq $0, %rax
|
xorq %rax, %rax
|
||||||
ret
|
ret
|
||||||
nz:
|
nz:
|
||||||
movq $1, %rax
|
movq $1, %rax
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue