Source-Changes-HG archive

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

[src/trunk]: src/common/lib/libc/atomic Add missing alias for __atomic_fetch_...



details:   https://anonhg.NetBSD.org/src/rev/395673e25b40
branches:  trunk
changeset: 997253:395673e25b40
user:      isaki <isaki%NetBSD.org@localhost>
date:      Fri Mar 01 06:14:52 2019 +0000

description:
Add missing alias for __atomic_fetch_nand_N.
XXX I'm not sure why does llvm/sparc call __atomic instead of
    __sync though.
XXX atomic_*_cas.c should be more symmetric...

diffstat:

 common/lib/libc/atomic/atomic_nand_16_cas.c |  4 +++-
 common/lib/libc/atomic/atomic_nand_32_cas.c |  4 +++-
 common/lib/libc/atomic/atomic_nand_8_cas.c  |  4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 940930bf1feb -r 395673e25b40 common/lib/libc/atomic/atomic_nand_16_cas.c
--- a/common/lib/libc/atomic/atomic_nand_16_cas.c       Fri Mar 01 05:41:56 2019 +0000
+++ b/common/lib/libc/atomic/atomic_nand_16_cas.c       Fri Mar 01 06:14:52 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_nand_16_cas.c,v 1.2 2014/02/21 16:06:48 martin Exp $    */
+/*     $NetBSD: atomic_nand_16_cas.c,v 1.3 2019/03/01 06:14:52 isaki Exp $     */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -61,3 +61,5 @@
        } while (atomic_cas_16(addr, old, new) != old);
        return new;
 }
+
+__strong_alias(__atomic_fetch_nand_2,__sync_fetch_and_nand_2)
diff -r 940930bf1feb -r 395673e25b40 common/lib/libc/atomic/atomic_nand_32_cas.c
--- a/common/lib/libc/atomic/atomic_nand_32_cas.c       Fri Mar 01 05:41:56 2019 +0000
+++ b/common/lib/libc/atomic/atomic_nand_32_cas.c       Fri Mar 01 06:14:52 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_nand_32_cas.c,v 1.1 2014/02/21 10:52:50 martin Exp $    */
+/*     $NetBSD: atomic_nand_32_cas.c,v 1.2 2019/03/01 06:14:52 isaki Exp $     */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -59,3 +59,5 @@
        } while (atomic_cas_32(addr, old, new) != old);
        return new;
 }
+
+__strong_alias(__atomic_fetch_nand_4,__sync_fetch_and_nand_4)
diff -r 940930bf1feb -r 395673e25b40 common/lib/libc/atomic/atomic_nand_8_cas.c
--- a/common/lib/libc/atomic/atomic_nand_8_cas.c        Fri Mar 01 05:41:56 2019 +0000
+++ b/common/lib/libc/atomic/atomic_nand_8_cas.c        Fri Mar 01 06:14:52 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_nand_8_cas.c,v 1.2 2014/02/21 16:06:48 martin Exp $     */
+/*     $NetBSD: atomic_nand_8_cas.c,v 1.3 2019/03/01 06:14:52 isaki Exp $      */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -61,3 +61,5 @@
        } while (atomic_cas_8(addr, old, new) != old);
        return new;
 }
+
+__strong_alias(__atomic_fetch_nand_1,__sync_fetch_and_nand_1)



Home | Main Index | Thread Index | Old Index