Closed xry111 closed 8 months ago
For example: __atomic_exchange_n(p, v, __ATOMIC_ACQUIRE);
__atomic_exchange_n(p, v, __ATOMIC_ACQUIRE);
Is it better to use amswap.w then dbar 0b10100 instead of amswap_db.w?
amswap.w
dbar 0b10100
amswap_db.w
Cc @heiher
We did a performance comparison in JVM, and there was almost no difference on LA664. This is not meant to apply to other cases.
Ok, so continue to using amswap_db for now as it's shorter.
For example:
__atomic_exchange_n(p, v, __ATOMIC_ACQUIRE);
Is it better to use
amswap.w
thendbar 0b10100
instead ofamswap_db.w
?Cc @heiher