From afb24a108318abce40c78113c0ba26aea3b65f90 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 25 Aug 2004 23:27:17 +0000 Subject: Update. * sysdeps/powerpc/powerpc64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval is negative. (__arch_compare_and_exchange_bool_32_rel): Likewise. --- sysdeps/powerpc/powerpc64/bits/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/powerpc') diff --git a/sysdeps/powerpc/powerpc64/bits/atomic.h b/sysdeps/powerpc/powerpc64/bits/atomic.h index 1a20e3f0fd..fa25678410 100644 --- a/sysdeps/powerpc/powerpc64/bits/atomic.h +++ b/sysdeps/powerpc/powerpc64/bits/atomic.h @@ -52,7 +52,7 @@ " bne- 1b\n" \ "2: " \ : "=&r" (__tmp), "=r" (__tmp2) \ - : "b" (mem), "r" (oldval), "r" (newval) \ + : "b" (mem), "1" (oldval), "r" (newval) \ : "cr0", "memory"); \ __tmp != 0; \ }) -- cgit 1.4.1