From 83e184f0cc90990dece8ea1bbb94e2f13de54d19 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 20 Feb 2017 11:19:54 +0300 Subject: [PATCH] Fix typo in comments in gcc/arm.h * src/atomic_ops/sysdeps/gcc/arm.h [!AO_GENERALIZE_ASM_BOOL_CAS] (AO_compare_and_swap): Fix typo ("succeeded") and add "then" in comment. * src/atomic_ops/sysdeps/gcc/arm.h [AO_ARM_HAVE_LDREXD] (AO_double_compare_and_swap): Likewise. --- src/atomic_ops/sysdeps/gcc/arm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atomic_ops/sysdeps/gcc/arm.h b/src/atomic_ops/sysdeps/gcc/arm.h index 5f02cbc..e2db736 100644 --- a/src/atomic_ops/sysdeps/gcc/arm.h +++ b/src/atomic_ops/sysdeps/gcc/arm.h @@ -457,7 +457,7 @@ AO_xor(volatile AO_t *p, AO_t value) : "=&r"(result), "=&r"(tmp), "+m"(*addr) : "r"(addr), "r"(old_val), "r"(new_val) : AO_THUMB_SWITCH_CLOBBERS "cc"); - return !(result&2); /* if succeded, return 1, else 0 */ + return !(result&2); /* if succeeded then return 1 else 0 */ } # define AO_HAVE_compare_and_swap #endif /* !AO_GENERALIZE_ASM_BOOL_CAS */ @@ -551,7 +551,7 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val) : "r" (addr), "r" (new_val.AO_whole) : "cc"); } while (AO_EXPECT_FALSE(result)); - return !result; /* if succeded, return 1 else 0 */ + return !result; /* if succeeded then return 1 else 0 */ } # define AO_HAVE_double_compare_and_swap #endif /* AO_ARM_HAVE_LDREXD */ -- 2.7.4