Source-Changes-HG archive

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

[src/trunk]: src/common/lib/libc/arch Add missing atomic_and_{8,16}_nv_cas.c ...



details:   https://anonhg.NetBSD.org/src/rev/5963161e9ccf
branches:  trunk
changeset: 997228:5963161e9ccf
user:      isaki <isaki%NetBSD.org@localhost>
date:      Thu Feb 28 02:35:37 2019 +0000

description:
Add missing atomic_and_{8,16}_nv_cas.c for __sync_and_and_fetch_{1,2}.
XXX why is not only atomic_and_* symmetric unlike the others?
    (in common/lib/libc/atomic/)

diffstat:

 common/lib/libc/arch/hppa/atomic/Makefile.inc  |  3 ++-
 common/lib/libc/arch/m68k/atomic/Makefile.inc  |  3 ++-
 common/lib/libc/arch/mips/atomic/Makefile.inc  |  3 ++-
 common/lib/libc/arch/sh3/atomic/Makefile.inc   |  3 ++-
 common/lib/libc/arch/sparc/atomic/Makefile.inc |  3 ++-
 common/lib/libc/arch/vax/atomic/Makefile.inc   |  3 ++-
 6 files changed, 12 insertions(+), 6 deletions(-)

diffs (102 lines):

diff -r a8e4913f62dc -r 5963161e9ccf common/lib/libc/arch/hppa/atomic/Makefile.inc
--- a/common/lib/libc/arch/hppa/atomic/Makefile.inc     Thu Feb 28 01:20:25 2019 +0000
+++ b/common/lib/libc/arch/hppa/atomic/Makefile.inc     Thu Feb 28 02:35:37 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.13 2014/10/14 07:25:05 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.14 2019/02/28 02:35:37 isaki Exp $
 
 .if defined(LIB)
 
@@ -30,6 +30,7 @@
        atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c   \
        atomic_or_16_cas.c atomic_or_8_cas.c                            \
        atomic_and_16_cas.c atomic_and_8_cas.c                          \
+       atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c                    \
        atomic_add_16_cas.c atomic_add_8_cas.c                          \
        atomic_swap_16_cas.c atomic_swap_8_cas.c                        \
        atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c      \
diff -r a8e4913f62dc -r 5963161e9ccf common/lib/libc/arch/m68k/atomic/Makefile.inc
--- a/common/lib/libc/arch/m68k/atomic/Makefile.inc     Thu Feb 28 01:20:25 2019 +0000
+++ b/common/lib/libc/arch/m68k/atomic/Makefile.inc     Thu Feb 28 02:35:37 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.14 2014/11/20 07:07:13 matt Exp $
+#      $NetBSD: Makefile.inc,v 1.15 2019/02/28 02:35:37 isaki Exp $
 
 #
 # Note: The atomic operations here in these assembly files are atomic
@@ -30,6 +30,7 @@
        atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c   \
        atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c      \
        atomic_and_32_cas.c atomic_and_16_cas.c atomic_and_8_cas.c      \
+       atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c                    \
        atomic_or_32_cas.c atomic_or_16_cas.c atomic_or_8_cas.c         \
        atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c      \
        atomic_swap_32_cas.c atomic_swap_16_cas.c atomic_swap_8_cas.c
diff -r a8e4913f62dc -r 5963161e9ccf common/lib/libc/arch/mips/atomic/Makefile.inc
--- a/common/lib/libc/arch/mips/atomic/Makefile.inc     Thu Feb 28 01:20:25 2019 +0000
+++ b/common/lib/libc/arch/mips/atomic/Makefile.inc     Thu Feb 28 02:35:37 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.13 2014/10/13 13:00:55 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.14 2019/02/28 02:35:37 isaki Exp $
 
 .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
        || ${LIB} == "rump")
@@ -44,6 +44,7 @@
        atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c   \
        atomic_or_16_cas.c atomic_or_8_cas.c                            \
        atomic_and_16_cas.c atomic_and_8_cas.c                          \
+       atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c                    \
        atomic_add_16_cas.c atomic_add_8_cas.c                          \
        atomic_swap_16_cas.c atomic_swap_8_cas.c                        \
        atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c      \
diff -r a8e4913f62dc -r 5963161e9ccf common/lib/libc/arch/sh3/atomic/Makefile.inc
--- a/common/lib/libc/arch/sh3/atomic/Makefile.inc      Thu Feb 28 01:20:25 2019 +0000
+++ b/common/lib/libc/arch/sh3/atomic/Makefile.inc      Thu Feb 28 02:35:37 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.7 2014/10/13 13:00:55 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.8 2019/02/28 02:35:37 isaki Exp $
 
 .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
        || ${LIB} == "rump")
@@ -12,6 +12,7 @@
 SRCS+= atomic_add_16_cas.c atomic_add_8_cas.c  \
        atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c      \
        atomic_and_16_cas.c atomic_and_8_cas.c  \
+       atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c    \
        atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c   \
        atomic_or_16_cas.c atomic_or_8_cas.c    \
        atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c      \
diff -r a8e4913f62dc -r 5963161e9ccf common/lib/libc/arch/sparc/atomic/Makefile.inc
--- a/common/lib/libc/arch/sparc/atomic/Makefile.inc    Thu Feb 28 01:20:25 2019 +0000
+++ b/common/lib/libc/arch/sparc/atomic/Makefile.inc    Thu Feb 28 02:35:37 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.22 2016/05/29 05:10:34 nakayama Exp $
+#      $NetBSD: Makefile.inc,v 1.23 2019/02/28 02:35:37 isaki Exp $
 
 .include <bsd.own.mk>
 
@@ -36,6 +36,7 @@
 .  if ${LIB} == "c"
 SRCS+= atomic_nand_16_cas.c atomic_nand_8_cas.c        \
        atomic_and_16_cas.c atomic_and_8_cas.c          \
+       atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c    \
        atomic_xor_16_cas.c atomic_xor_8_cas.c          \
        atomic_add_16_cas.c atomic_add_8_cas.c          \
        atomic_cas_16_cas.c atomic_cas_8_cas.c          \
diff -r a8e4913f62dc -r 5963161e9ccf common/lib/libc/arch/vax/atomic/Makefile.inc
--- a/common/lib/libc/arch/vax/atomic/Makefile.inc      Thu Feb 28 01:20:25 2019 +0000
+++ b/common/lib/libc/arch/vax/atomic/Makefile.inc      Thu Feb 28 02:35:37 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.7 2014/10/12 17:53:33 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.8 2019/02/28 02:35:38 isaki Exp $
 
 .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
        || ${LIB} == "rump")
@@ -14,6 +14,7 @@
        atomic_or_16_cas.c atomic_or_8_cas.c    \
        atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c      \
        atomic_and_16_cas.c atomic_and_8_cas.c  \
+       atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c    \
        atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c   \
        atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c      \
        atomic_swap_16_cas.c atomic_swap_8_cas.c \



Home | Main Index | Thread Index | Old Index