[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YHf+z0AotZmjvaJ/@hirez.programming.kicks-ass.net>
Date: Thu, 15 Apr 2021 10:52:31 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: guoren@...nel.org
Cc: Anup.Patel@....com, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-csky@...r.kernel.org,
linux-arch@...r.kernel.org, Guo Ren <guoren@...ux.alibaba.com>,
Arnd Bergmann <arnd@...db.de>,
Anup Patel <anup@...infault.org>,
Palmer Dabbelt <palmerdabbelt@...gle.com>
Subject: Re: [PATCH] riscv: atomic: Using ARCH_ATOMIC in asm/atomic.h
On Thu, Apr 15, 2021 at 07:39:22AM +0000, guoren@...nel.org wrote:
> - Add atomic_andnot_* operation
> @@ -76,6 +59,12 @@ ATOMIC_OPS(sub, add, -i)
> ATOMIC_OPS(and, and, i)
> ATOMIC_OPS( or, or, i)
> ATOMIC_OPS(xor, xor, i)
> +ATOMIC_OPS(andnot, and, -i)
~i, surely.
Powered by blists - more mailing lists