mirror of
https://github.com/ish-app/ish.git
synced 2026-02-01 14:32:26 +00:00
Fix atomic non-32-bit cmpxchg on aarch64
This commit is contained in:
parent
1b172c15b6
commit
f2833e4762
@ -53,6 +53,11 @@
|
||||
mov w9, eax
|
||||
do_add sub, w9, w8, \s
|
||||
setf_zsp \s, val=w9
|
||||
.ifnb \s
|
||||
cmp w9, 0
|
||||
and w9, eax, (-1 << \size)
|
||||
orr w8, w8, w9
|
||||
.endif
|
||||
csel eax, w8, eax, ne
|
||||
csel w8, _tmp, w8, eq
|
||||
cset w9, eq
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user