Re: [PATCH v2] powerpc: expose the multi-bit ops that underlie single-bit ops.

2009-07-07 Thread Benjamin Herrenschmidt
On Tue, 2009-07-07 at 21:23 -0400, Geoff Thorpe wrote: > The bitops.h functions that operate on a single bit in a bitfield are > implemented by operating on the corresponding word location. In all > cases the inner logic is valid if the mask being applied has more than > one bit set, so this patch

[PATCH v2] powerpc: expose the multi-bit ops that underlie single-bit ops.

2009-07-07 Thread Geoff Thorpe
The bitops.h functions that operate on a single bit in a bitfield are implemented by operating on the corresponding word location. In all cases the inner logic is valid if the mask being applied has more than one bit set, so this patch exposes those inner operations. Indeed, set_bits() was already