Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux atomic_andnot



details:   https://anonhg.NetBSD.org/src/rev/4231fb48b9c9
branches:  trunk
changeset: 1027996:4231fb48b9c9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:33:51 2021 +0000

description:
atomic_andnot

diffstat:

 sys/external/bsd/drm2/include/linux/atomic.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 7a61862de676 -r 4231fb48b9c9 sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h      Sun Dec 19 01:33:44 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h      Sun Dec 19 01:33:51 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.23 2021/12/19 01:25:21 riastradh Exp $    */
+/*     $NetBSD: atomic.h,v 1.24 2021/12/19 01:33:51 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -163,6 +163,13 @@
 }
 
 static inline void
+atomic_andnot(int value, atomic_t *atomic)
+{
+       /* no membar */
+       atomic_and_uint(&atomic->a_u.au_uint, ~value);
+}
+
+static inline void
 atomic_set_mask(unsigned long mask, atomic_t *atomic)
 {
        /* no membar */



Home | Main Index | Thread Index | Old Index