summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-03-07 07:31:55 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-03-07 19:36:45 +0400
commit97b97ed51d7cd5aba51164f8691c4840e7506a15 (patch)
treed0bba76f8c83f41454a9b773b27b07d4ee29bee3
parentc68965cc5c98e38073272c59d54a5b942ef60c8e (diff)
downloadlibatomic_ops-97b97ed51d7cd5aba51164f8691c4840e7506a15.tar.gz
Fix a typo in comment
* src/atomic_ops/sysdeps/gcc/x86.h (AO_compare_double_and_swap_double_full): Fix argument name in the comment. * src/atomic_ops/sysdeps/sunc/x86.h (AO_compare_double_and_swap_double_full): Likewise.
-rw-r--r--src/atomic_ops/sysdeps/gcc/x86.h2
-rw-r--r--src/atomic_ops/sysdeps/sunc/x86.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/x86.h b/src/atomic_ops/sysdeps/gcc/x86.h
index 807afc1..f3560b0 100644
--- a/src/atomic_ops/sysdeps/gcc/x86.h
+++ b/src/atomic_ops/sysdeps/gcc/x86.h
@@ -142,7 +142,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr,
GOT pointer. We can save and restore %ebx because GCC won't be
using it for anything else (such as any of the m operands) */
__asm__ __volatile__("pushl %%ebx;" /* save ebx used for PIC GOT ptr */
- "movl %6,%%ebx;" /* move new_val2 to %ebx */
+ "movl %6,%%ebx;" /* move new_val1 to %ebx */
"lock; cmpxchg8b %0; setz %1;"
"pop %%ebx;" /* restore %ebx */
: "=m"(*addr), "=a"(result)
diff --git a/src/atomic_ops/sysdeps/sunc/x86.h b/src/atomic_ops/sysdeps/sunc/x86.h
index ab34db9..ac1ee1e 100644
--- a/src/atomic_ops/sysdeps/sunc/x86.h
+++ b/src/atomic_ops/sysdeps/sunc/x86.h
@@ -140,7 +140,7 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr,
GOT pointer. We can save and restore %ebx because GCC won't be
using it for anything else (such as any of the m operands) */
__asm__ __volatile__("pushl %%ebx;" /* save ebx used for PIC GOT ptr */
- "movl %6,%%ebx;" /* move new_val2 to %ebx */
+ "movl %6,%%ebx;" /* move new_val1 to %ebx */
"lock; cmpxchg8b %0; setz %1;"
"pop %%ebx;" /* restore %ebx */
: "=m"(*addr), "=a"(result)