Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc Add aliases for the C11/C++11 spelling of th...
details: https://anonhg.NetBSD.org/src/rev/a4f908eeb94f
branches: trunk
changeset: 330195:a4f908eeb94f
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jun 28 20:18:55 2014 +0000
description:
Add aliases for the C11/C++11 spelling of the CAS primitives.
diffstat:
common/lib/libc/arch/arm/atomic/atomic_swap.S | 4 +++-
common/lib/libc/arch/arm/atomic/atomic_swap_16.S | 3 ++-
common/lib/libc/arch/arm/atomic/atomic_swap_64.S | 3 ++-
common/lib/libc/arch/m68k/atomic/atomic_swap.S | 5 ++++-
common/lib/libc/atomic/atomic_swap_16_cas.c | 4 +++-
common/lib/libc/atomic/atomic_swap_32_cas.c | 4 +++-
common/lib/libc/atomic/atomic_swap_64_cas.c | 4 +++-
common/lib/libc/atomic/atomic_swap_8_cas.c | 4 +++-
8 files changed, 23 insertions(+), 8 deletions(-)
diffs (155 lines):
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/arch/arm/atomic/atomic_swap.S
--- a/common/lib/libc/arch/arm/atomic/atomic_swap.S Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_swap.S Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap.S,v 1.10 2014/03/04 16:15:28 matt Exp $ */
+/* $NetBSD: atomic_swap.S,v 1.11 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2007,2012 The NetBSD Foundation, Inc.
@@ -79,6 +79,7 @@
ATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_32)
ATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)
CRT_ALIAS(__sync_lock_test_and_set_4,_atomic_swap_32)
+CRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)
STRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)
STRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)
STRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)
@@ -115,6 +116,7 @@
ATOMIC_OP_ALIAS(atomic_swap_char,_atomic_swap_8)
ATOMIC_OP_ALIAS(atomic_swap_uchar,_atomic_swap_8)
CRT_ALIAS(__sync_lock_test_and_set_1,_atomic_swap_8)
+CRT_ALIAS(__atomic_exchange_1,_atomic_swap_8)
STRONG_ALIAS(_atomic_swap_char,_atomic_swap_8)
STRONG_ALIAS(_atomic_swap_uchar,_atomic_swap_8)
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/arch/arm/atomic/atomic_swap_16.S
--- a/common/lib/libc/arch/arm/atomic/atomic_swap_16.S Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_swap_16.S Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_16.S,v 1.2 2014/03/04 16:15:28 matt Exp $ */
+/* $NetBSD: atomic_swap_16.S,v 1.3 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -51,6 +51,7 @@
ATOMIC_OP_ALIAS(atomic_swap_short,_atomic_swap_16)
ATOMIC_OP_ALIAS(atomic_swap_ushort,_atomic_swap_16)
CRT_ALIAS(__sync_lock_test_and_set_2,_atomic_swap_16)
+CRT_ALIAS(__atomic_exchange_2,_atomic_swap_16)
STRONG_ALIAS(_atomic_swap_short,_atomic_swap_16)
STRONG_ALIAS(_atomic_swap_ushort,_atomic_swap_16)
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/arch/arm/atomic/atomic_swap_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_swap_64.S Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_swap_64.S Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_64.S,v 1.8 2014/03/04 16:15:28 matt Exp $ */
+/* $NetBSD: atomic_swap_64.S,v 1.9 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -51,6 +51,7 @@
END(_atomic_swap_64)
ATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)
CRT_ALIAS(__sync_lock_test_and_set_8,_atomic_swap_64)
+CRT_ALIAS(__atomic_exchange_8,_atomic_swap_64)
#if (!defined(_KERNEL) || defined(_RUMPKERNEL)) && !defined(_STANDALONE)
ENTRY_NP(__sync_lock_release_8)
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/arch/m68k/atomic/atomic_swap.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_swap.S Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_swap.S Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap.S,v 1.8 2014/02/22 17:08:30 martin Exp $ */
+/* $NetBSD: atomic_swap.S,v 1.9 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -51,6 +51,7 @@
ATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)
STRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)
CRT_ALIAS(__sync_lock_test_and_set_4,_atomic_swap_32)
+CRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)
ENTRY(_atomic_swap_16)
@@ -64,6 +65,7 @@
END(_atomic_swap_16)
ATOMIC_OP_ALIAS(atomic_swap_16,_atomic_swap_16)
CRT_ALIAS(__sync_lock_test_and_set_2,_atomic_swap_16)
+CRT_ALIAS(__atomic_exchange_2,_atomic_swap_16)
ENTRY(_atomic_swap_8)
movl 4(%sp), %a0
@@ -76,3 +78,4 @@
END(_atomic_swap_8)
ATOMIC_OP_ALIAS(atomic_swap_8,_atomic_swap_8)
CRT_ALIAS(__sync_lock_test_and_set_1,_atomic_swap_8)
+CRT_ALIAS(__atomic_exchange_1,_atomic_swap_8)
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/atomic/atomic_swap_16_cas.c
--- a/common/lib/libc/atomic/atomic_swap_16_cas.c Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/atomic/atomic_swap_16_cas.c Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_16_cas.c,v 1.2 2014/02/21 15:51:07 martin Exp $ */
+/* $NetBSD: atomic_swap_16_cas.c,v 1.3 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -48,3 +48,5 @@
return old;
}
+
+crt_alias(__atomic_exchange_2,__sync_lock_test_and_set_2)
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/atomic/atomic_swap_32_cas.c
--- a/common/lib/libc/atomic/atomic_swap_32_cas.c Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/atomic/atomic_swap_32_cas.c Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_32_cas.c,v 1.6 2014/02/22 17:08:30 martin Exp $ */
+/* $NetBSD: atomic_swap_32_cas.c,v 1.7 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -45,6 +45,8 @@
return (old);
}
+crt_alias(__atomic_exchange_4,_atomic_swap_32)
+
#undef atomic_swap_32
atomic_op_alias(atomic_swap_32,_atomic_swap_32)
#undef atomic_swap_uint
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/atomic/atomic_swap_64_cas.c
--- a/common/lib/libc/atomic/atomic_swap_64_cas.c Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/atomic/atomic_swap_64_cas.c Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_64_cas.c,v 1.8 2014/02/22 17:08:30 martin Exp $ */
+/* $NetBSD: atomic_swap_64_cas.c,v 1.9 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -47,6 +47,8 @@
return (old);
}
+crt_alias(__atomic_exchange_8,_atomic_swap_8)
+
#undef atomic_swap_64
atomic_op_alias(atomic_swap_64,_atomic_swap_64)
crt_alias(__sync_lock_test_and_set_8,_atomic_swap_64)
diff -r 2ae6b7d71583 -r a4f908eeb94f common/lib/libc/atomic/atomic_swap_8_cas.c
--- a/common/lib/libc/atomic/atomic_swap_8_cas.c Sat Jun 28 20:18:15 2014 +0000
+++ b/common/lib/libc/atomic/atomic_swap_8_cas.c Sat Jun 28 20:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_8_cas.c,v 1.2 2014/02/21 15:51:07 martin Exp $ */
+/* $NetBSD: atomic_swap_8_cas.c,v 1.3 2014/06/28 20:18:55 joerg Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -48,3 +48,5 @@
return old;
}
+
+crt_alias(__atomic_exchange_1,__sync_lock_test_and_set_1)
Home |
Main Index |
Thread Index |
Old Index