From ca18edc9b2a9c5ef6574cb090873fc56cce56326 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Mon, 19 May 2025 14:43:56 -0400 Subject: [PATCH] Fix CAS arguments in x86_64 parsec_atomic_fetch_add_int128 Signed-off-by: Joseph Schuchart --- parsec/include/parsec/sys/atomic-x86_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsec/include/parsec/sys/atomic-x86_64.h b/parsec/include/parsec/sys/atomic-x86_64.h index a141e7a26..782904d58 100644 --- a/parsec/include/parsec/sys/atomic-x86_64.h +++ b/parsec/include/parsec/sys/atomic-x86_64.h @@ -196,7 +196,7 @@ __int128_t parsec_atomic_fetch_add_int128(volatile __int128_t* v, __int128_t i) do { ov = *v; nv = ov + i; - } while( !parsec_atomic_cas_int128(v, nv) ); + } while( !parsec_atomic_cas_int128(v, ov, nv) ); return ov; } #endif