Theodore Dubois 947e640b81 Fix implementation of xadd on arm64
This went unnoticed for a long time because it only happens when the
cmpxchg loop runs multiple times. xadd is the only arithmetic operation
that changes the value of its source operand. This meant that if the
cmpxchg failed, the operation would be redone with the changed source
operand value instead of the original, giving the wrong result.
2022-02-19 20:12:08 -08:00
..
2019-09-09 14:24:28 +08:00
2018-11-18 17:16:39 -08:00
2022-01-22 19:01:16 -08:00
2020-12-20 16:35:23 -08:00