[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180216141829.GK25235@hirez.programming.kicks-ass.net>
Date: Fri, 16 Feb 2018 15:18:29 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Will Deacon <will.deacon@....com>
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
mingo@...nel.org
Subject: Re: [RFC PATCH 3/5] asm-generic/bitops/atomic.h: Rewrite using
atomic_fetch_*
On Fri, Feb 16, 2018 at 11:35:20AM +0100, Peter Zijlstra wrote:
> #define BIT_U32_MASK(nr) (1UL << ((nr) % 32))
> #define BIT_U32_WORD(nr) (((nr) / 32) ^ (4 * __BIG_ENDIAN__))
s/4 *//
it's already a 4 byte offset.
Powered by blists - more mailing lists