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_fetch_and_<OP>_<N> aliases



details:   https://anonhg.NetBSD.org/src/rev/02aba145ba9a
branches:  trunk
changeset: 326371:02aba145ba9a
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 27 18:12:57 2014 +0000

description:
Add __sync_fetch_and_<OP>_<N> aliases

diffstat:

 common/lib/libc/atomic/atomic_and_32_cas.c |  4 +++-
 common/lib/libc/atomic/atomic_and_64_cas.c |  4 +++-
 common/lib/libc/atomic/atomic_or_32_cas.c  |  4 +++-
 common/lib/libc/atomic/atomic_or_64_cas.c  |  4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)

diffs (72 lines):

diff -r 60c2cb5dab45 -r 02aba145ba9a common/lib/libc/atomic/atomic_and_32_cas.c
--- a/common/lib/libc/atomic/atomic_and_32_cas.c        Mon Jan 27 18:09:51 2014 +0000
+++ b/common/lib/libc/atomic/atomic_and_32_cas.c        Mon Jan 27 18:12:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_and_32_cas.c,v 1.4 2008/04/28 20:22:52 martin Exp $     */
+/*     $NetBSD: atomic_and_32_cas.c,v 1.5 2014/01/27 18:12:57 matt Exp $       */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -46,6 +46,8 @@
 
 #undef atomic_and_32
 atomic_op_alias(atomic_and_32,_atomic_and_32)
+__strong_alias(__sync_fetch_and_and_4,_atomic_and_32)
+
 #undef atomic_and_uint
 atomic_op_alias(atomic_and_uint,_atomic_and_32)
 __strong_alias(_atomic_and_uint,_atomic_and_32)
diff -r 60c2cb5dab45 -r 02aba145ba9a common/lib/libc/atomic/atomic_and_64_cas.c
--- a/common/lib/libc/atomic/atomic_and_64_cas.c        Mon Jan 27 18:09:51 2014 +0000
+++ b/common/lib/libc/atomic/atomic_and_64_cas.c        Mon Jan 27 18:12:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_and_64_cas.c,v 1.5 2008/04/28 20:22:52 martin Exp $     */
+/*     $NetBSD: atomic_and_64_cas.c,v 1.6 2014/01/27 18:12:57 matt Exp $       */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -48,6 +48,8 @@
 
 #undef atomic_and_64
 atomic_op_alias(atomic_and_64,_atomic_and_64)
+__strong_alias(__sync_fetch_and_and_8,_atomic_and_64)
+
 #if defined(_LP64)
 #undef atomic_and_ulong
 atomic_op_alias(atomic_and_ulong,_atomic_and_64)
diff -r 60c2cb5dab45 -r 02aba145ba9a common/lib/libc/atomic/atomic_or_32_cas.c
--- a/common/lib/libc/atomic/atomic_or_32_cas.c Mon Jan 27 18:09:51 2014 +0000
+++ b/common/lib/libc/atomic/atomic_or_32_cas.c Mon Jan 27 18:12:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_or_32_cas.c,v 1.4 2008/04/28 20:22:53 martin Exp $      */
+/*     $NetBSD: atomic_or_32_cas.c,v 1.5 2014/01/27 18:12:57 matt Exp $        */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -46,6 +46,8 @@
 
 #undef atomic_or_32
 atomic_op_alias(atomic_or_32,_atomic_or_32)
+__strong_alias(__sync_fetch_and_or_4,_atomic_or_32)
+
 #undef atomic_or_uint
 atomic_op_alias(atomic_or_uint,_atomic_or_32)
 __strong_alias(_atomic_or_uint,_atomic_or_32)
diff -r 60c2cb5dab45 -r 02aba145ba9a common/lib/libc/atomic/atomic_or_64_cas.c
--- a/common/lib/libc/atomic/atomic_or_64_cas.c Mon Jan 27 18:09:51 2014 +0000
+++ b/common/lib/libc/atomic/atomic_or_64_cas.c Mon Jan 27 18:12:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_or_64_cas.c,v 1.5 2008/04/28 20:22:53 martin Exp $      */
+/*     $NetBSD: atomic_or_64_cas.c,v 1.6 2014/01/27 18:12:57 matt Exp $        */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -48,6 +48,8 @@
 
 #undef atomic_or_64
 atomic_op_alias(atomic_or_64,_atomic_or_64)
+__strong_alias(__sync_fetch_and_or_8,_atomic_or_64)
+
 #if defined(_LP64)
 #undef atomic_or_ulong
 atomic_op_alias(atomic_or_ulong,_atomic_or_64)



Home | Main Index | Thread Index | Old Index