diff options
| author | riastradh <riastradh@NetBSD.org> | 2023-04-03 16:45:46 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2023-04-03 16:45:46 +0000 |
| commit | 4fa0dc14f40993e0e16c4b3e4b763fa767320190 (patch) | |
| tree | f3ffd41a624b3efe2439304b75286ef68b107b85 /common | |
| parent | e62ccdbc0971a862ed4f03ae00c14731b103126a (diff) | |
libc atomic: Make previous work a little less accidentally.
Diffstat (limited to 'common')
| -rw-r--r-- | common/lib/libc/atomic/atomic_is_lock_free.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/lib/libc/atomic/atomic_is_lock_free.c b/common/lib/libc/atomic/atomic_is_lock_free.c index 0ebc0d0d7c3..f376b227ac4 100644 --- a/common/lib/libc/atomic/atomic_is_lock_free.c +++ b/common/lib/libc/atomic/atomic_is_lock_free.c @@ -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 @@ __RCSID("$NetBSD: atomic_is_lock_free.c,v 1.2 2023/04/03 08:00:28 riastradh Exp * 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) |
