]> granicus.if.org Git - libatomic_ops/commitdiff
Fix a typo in comment
authorIvan Maidanski <ivmai@mail.ru>
Wed, 7 Mar 2012 03:31:55 +0000 (07:31 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 7 Mar 2012 15:36:45 +0000 (19:36 +0400)
* 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.

src/atomic_ops/sysdeps/gcc/x86.h
src/atomic_ops/sysdeps/sunc/x86.h

index 807afc17b776c4d23fdf82221c5b09c5003c59cf..f3560b09bf1023f5873d61a742c0d4b425d3448d 100644 (file)
@@ -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)
index ab34db9a2dcebd2dc860ff946c0b21bc13ed5f04..ac1ee1ea8a4f09b2647e77f2a531214f20342aee 100644 (file)
@@ -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)