aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-21 08:19:35 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-21 08:19:35 +0000
commitb97ccf3d1ee694dd5ab6d3e7ae40addff461fbaa (patch)
tree002db085bf6ace5e35b3483f7a80ae3268a0dd71 /sysdeps/x86_64/bits
parent9f07eae2988388ffd0c652a4ec6d740df5795cab (diff)
downloadglibc-b97ccf3d1ee694dd5ab6d3e7ae40addff461fbaa.tar
glibc-b97ccf3d1ee694dd5ab6d3e7ae40addff461fbaa.tar.gz
glibc-b97ccf3d1ee694dd5ab6d3e7ae40addff461fbaa.tar.bz2
glibc-b97ccf3d1ee694dd5ab6d3e7ae40addff461fbaa.zip
(__arch_compare_and_exchange_val_*_acq): Remove setne instruction.
Diffstat (limited to 'sysdeps/x86_64/bits')
-rw-r--r--sysdeps/x86_64/bits/atomic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/x86_64/bits/atomic.h b/sysdeps/x86_64/bits/atomic.h
index 742f8b1773..b98c25f1fe 100644
--- a/sysdeps/x86_64/bits/atomic.h
+++ b/sysdeps/x86_64/bits/atomic.h
@@ -57,28 +57,28 @@ typedef uintmax_t uatomic_max_t;
#define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
({ __typeof (*mem) ret; \
- __asm __volatile (LOCK "cmpxchgb %b2, %1; setne %0" \
+ __asm __volatile (LOCK "cmpxchgb %b2, %1" \
: "=a" (ret), "=m" (*mem) \
: "q" (newval), "1" (*mem), "0" (oldval)); \
ret; })
#define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \
({ __typeof (*mem) ret; \
- __asm __volatile (LOCK "cmpxchgw %w2, %1; setne %0" \
+ __asm __volatile (LOCK "cmpxchgw %w2, %1" \
: "=a" (ret), "=m" (*mem) \
: "r" (newval), "1" (*mem), "0" (oldval)); \
ret; })
#define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
({ __typeof (*mem) ret; \
- __asm __volatile (LOCK "cmpxchgl %2, %1; setne %0" \
+ __asm __volatile (LOCK "cmpxchgl %2, %1" \
: "=a" (ret), "=m" (*mem) \
: "r" (newval), "1" (*mem), "0" (oldval)); \
ret; })
#define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
({ __typeof (*mem) ret; \
- __asm __volatile (LOCK "cmpxchgq %q2, %1; setne %0" \
+ __asm __volatile (LOCK "cmpxchgq %q2, %1" \
: "=a" (ret), "=m" (*mem) \
: "r" (newval), "1" (*mem), "0" (oldval)); \
ret; })