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 libc atomic: Make previous work a lit...



details:   https://anonhg.NetBSD.org/src/rev/e82926008b70
branches:  trunk
changeset: 374147:e82926008b70
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 03 16:45:46 2023 +0000

description:
libc atomic: Make previous work a little less accidentally.

diffstat:

 common/lib/libc/atomic/atomic_is_lock_free.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r cba2c0f81c48 -r e82926008b70 common/lib/libc/atomic/atomic_is_lock_free.c
--- a/common/lib/libc/atomic/atomic_is_lock_free.c      Mon Apr 03 16:26:50 2023 +0000
+++ b/common/lib/libc/atomic/atomic_is_lock_free.c      Mon Apr 03 16:45:46 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_is_lock_free.c,v 1.2 2023/04/03 08:00:28 riastradh Exp $        */
+/*     $NetBSD: atomic_is_lock_free.c,v 1.3 2023/04/03 16:45:46 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2023 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_is_lock_free.c,v 1.2 2023/04/03 08:00:28 riastradh Exp $");
+__RCSID("$NetBSD: atomic_is_lock_free.c,v 1.3 2023/04/03 16:45:46 riastradh Exp $");
 
 #include <sys/types.h>
 
@@ -38,9 +38,9 @@
  * C name be different but using an asm rename to define the right
  * symbol.
  */
+bool __atomic_is_lock_free_hack(size_t, const volatile void *)
+    __RENAME(__atomic_is_lock_free);
 #define        __atomic_is_lock_free   __atomic_is_lock_free_hack
-bool __atomic_is_lock_free(size_t, const volatile void *)
-    __RENAME("__atomic_is_lock_free");
 
 bool
 __atomic_is_lock_free(size_t n, const volatile void *p __unused)



Home | Main Index | Thread Index | Old Index