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 __sync_<OP>_and_fetch_<N> aliases
details: https://anonhg.NetBSD.org/src/rev/c9fde8b10410
branches: trunk
changeset: 326373:c9fde8b10410
user: matt <matt%NetBSD.org@localhost>
date: Mon Jan 27 18:36:37 2014 +0000
description:
Add __sync_<OP>_and_fetch_<N> aliases
diffstat:
common/lib/libc/atomic/atomic_add_32_nv_cas.c | 3 ++-
common/lib/libc/atomic/atomic_add_64_nv_cas.c | 3 ++-
common/lib/libc/atomic/atomic_and_32_nv_cas.c | 4 +++-
common/lib/libc/atomic/atomic_and_64_nv_cas.c | 4 +++-
common/lib/libc/atomic/atomic_or_32_nv_cas.c | 4 +++-
common/lib/libc/atomic/atomic_or_64_nv_cas.c | 4 +++-
6 files changed, 16 insertions(+), 6 deletions(-)
diffs (106 lines):
diff -r acabc1024650 -r c9fde8b10410 common/lib/libc/atomic/atomic_add_32_nv_cas.c
--- a/common/lib/libc/atomic/atomic_add_32_nv_cas.c Mon Jan 27 18:29:47 2014 +0000
+++ b/common/lib/libc/atomic/atomic_add_32_nv_cas.c Mon Jan 27 18:36:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_add_32_nv_cas.c,v 1.4 2008/04/28 20:22:52 martin Exp $ */
+/* $NetBSD: atomic_add_32_nv_cas.c,v 1.5 2014/01/27 18:36:37 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -48,6 +48,7 @@
#undef atomic_add_32_nv
atomic_op_alias(atomic_add_32_nv,_atomic_add_32_nv)
+__strong_alias(__sync_add_and_fetch_4,_atomic_add_32_nv)
#undef atomic_add_int_nv
atomic_op_alias(atomic_add_int_nv,_atomic_add_32_nv)
diff -r acabc1024650 -r c9fde8b10410 common/lib/libc/atomic/atomic_add_64_nv_cas.c
--- a/common/lib/libc/atomic/atomic_add_64_nv_cas.c Mon Jan 27 18:29:47 2014 +0000
+++ b/common/lib/libc/atomic/atomic_add_64_nv_cas.c Mon Jan 27 18:36:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_add_64_nv_cas.c,v 1.5 2008/04/28 20:22:52 martin Exp $ */
+/* $NetBSD: atomic_add_64_nv_cas.c,v 1.6 2014/01/27 18:36:37 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -50,6 +50,7 @@
#undef atomic_add_64_nv
atomic_op_alias(atomic_add_64_nv,_atomic_add_64_nv)
+__strong_alias(__sync_add_and_fetch_8,_atomic_add_64_nv)
#if defined(_LP64)
#undef atomic_add_long_nv
diff -r acabc1024650 -r c9fde8b10410 common/lib/libc/atomic/atomic_and_32_nv_cas.c
--- a/common/lib/libc/atomic/atomic_and_32_nv_cas.c Mon Jan 27 18:29:47 2014 +0000
+++ b/common/lib/libc/atomic/atomic_and_32_nv_cas.c Mon Jan 27 18:36:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_and_32_nv_cas.c,v 1.4 2008/04/28 20:22:52 martin Exp $ */
+/* $NetBSD: atomic_and_32_nv_cas.c,v 1.5 2014/01/27 18:36:37 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -48,6 +48,8 @@
#undef atomic_and_32_nv
atomic_op_alias(atomic_and_32_nv,_atomic_and_32_nv)
+__strong_alias(__sync_and_and_fetch_4,_atomic_add_32_nv)
+
#undef atomic_and_uint_nv
atomic_op_alias(atomic_and_uint_nv,_atomic_and_32_nv)
__strong_alias(_atomic_and_uint_nv,_atomic_and_32_nv)
diff -r acabc1024650 -r c9fde8b10410 common/lib/libc/atomic/atomic_and_64_nv_cas.c
--- a/common/lib/libc/atomic/atomic_and_64_nv_cas.c Mon Jan 27 18:29:47 2014 +0000
+++ b/common/lib/libc/atomic/atomic_and_64_nv_cas.c Mon Jan 27 18:36:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_and_64_nv_cas.c,v 1.5 2008/04/28 20:22:52 martin Exp $ */
+/* $NetBSD: atomic_and_64_nv_cas.c,v 1.6 2014/01/27 18:36:37 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -50,6 +50,8 @@
#undef atomic_and_64_nv
atomic_op_alias(atomic_and_64_nv,_atomic_and_64_nv)
+__strong_alias(__sync_and_and_fetch_8,_atomic_add_64_nv)
+
#if defined(_LP64)
#undef atomic_and_ulong_nv
atomic_op_alias(atomic_and_ulong_nv,_atomic_and_64_nv)
diff -r acabc1024650 -r c9fde8b10410 common/lib/libc/atomic/atomic_or_32_nv_cas.c
--- a/common/lib/libc/atomic/atomic_or_32_nv_cas.c Mon Jan 27 18:29:47 2014 +0000
+++ b/common/lib/libc/atomic/atomic_or_32_nv_cas.c Mon Jan 27 18:36:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_or_32_nv_cas.c,v 1.4 2008/04/28 20:22:53 martin Exp $ */
+/* $NetBSD: atomic_or_32_nv_cas.c,v 1.5 2014/01/27 18:36:37 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -48,6 +48,8 @@
#undef atomic_or_32_nv
atomic_op_alias(atomic_or_32_nv,_atomic_or_32_nv)
+__strong_alias(__sync_or_and_fetch_4,_atomic_or_32_nv)
+
#undef atomic_or_uint_nv
atomic_op_alias(atomic_or_uint_nv,_atomic_or_32_nv)
__strong_alias(_atomic_or_uint_nv,_atomic_or_32_nv)
diff -r acabc1024650 -r c9fde8b10410 common/lib/libc/atomic/atomic_or_64_nv_cas.c
--- a/common/lib/libc/atomic/atomic_or_64_nv_cas.c Mon Jan 27 18:29:47 2014 +0000
+++ b/common/lib/libc/atomic/atomic_or_64_nv_cas.c Mon Jan 27 18:36:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_or_64_nv_cas.c,v 1.5 2008/04/28 20:22:53 martin Exp $ */
+/* $NetBSD: atomic_or_64_nv_cas.c,v 1.6 2014/01/27 18:36:37 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -50,6 +50,8 @@
#undef atomic_or_64_nv
atomic_op_alias(atomic_or_64_nv,_atomic_or_64_nv)
+__strong_alias(__sync_or_and_fetch_8,_atomic_or_64_nv)
+
#if defined(_LP64)
#undef atomic_or_ulong_nv
atomic_op_alias(atomic_or_ulong_nv,_atomic_or_64_nv)
Home |
Main Index |
Thread Index |
Old Index