Skip to content
Browse files

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.
  • Loading branch information...
1 parent dfaa4af commit 2685b10962d3447c540c37c4bb2e243c8017face @ivmai committed Mar 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/atomic_ops/sysdeps/gcc/x86.h
  2. +1 −1 src/atomic_ops/sysdeps/sunc/x86.h
View
2 src/atomic_ops/sysdeps/gcc/x86.h
@@ -187,7 +187,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)
View
2 src/atomic_ops/sysdeps/sunc/x86.h
@@ -178,7 +178,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)

0 comments on commit 2685b10

Please sign in to comment.
Something went wrong with that request. Please try again.