Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/common/lib/libc/atomic Pull up following revision(s) (req...



details:   https://anonhg.NetBSD.org/src/rev/b0d231721273
branches:  netbsd-9
changeset: 366194:b0d231721273
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 17 13:48:45 2022 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #1453):

        common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c: revision 1.5

Fix the copy&paste botch from previous.  Spotted by Tom Lane.

diffstat:

 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c4975569e281 -r b0d231721273 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c
--- a/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c       Tue May 17 12:11:08 2022 +0000
+++ b/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c       Tue May 17 13:48:45 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.2.20.1 2022/05/15 12:37:00 martin Exp $       */
+/*     $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.2.20.2 2022/05/17 13:48:45 martin Exp $       */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
         * and just do the cas. If we get here the compiler couldn't
         * do better and it mostly will not matter at all.
         */
-       const uint32_t prev = atomic_cas_8(mem, old, desired);
+       const uint32_t prev = atomic_cas_32(mem, old, desired);
        if (prev == old)
                return true;
        *ep = prev;



Home | Main Index | Thread Index | Old Index