Re: [PATCH] powerpc: add setclrbits macros

2007-08-17 Thread Timur Tabi
Geert Uytterhoeven wrote: > Sorry for nitpicking again, but since the clear is done before the set (cfr. > the expanded functionality), perhaps they should be changed to > clrsetbits_X(addr, clear, set)? *sigh* You're right. New patch coming soon. -- Timur Tabi Linux Kernel Developer @ Freesc

Re: [PATCH] powerpc: add setclrbits macros

2007-08-16 Thread Geert Uytterhoeven
On Thu, 16 Aug 2007, Timur Tabi wrote: > This patch adds the setclrbits_xxx() macros, which are used to set and clear > multiple bits in a single read-modify-write operation. Specify the bits > to set in the 'set' parameter and the bits to clear in the 'clear' parameter. > These macros can also be

[PATCH] powerpc: add setclrbits macros

2007-08-16 Thread Timur Tabi
This patch adds the setclrbits_xxx() macros, which are used to set and clear multiple bits in a single read-modify-write operation. Specify the bits to set in the 'set' parameter and the bits to clear in the 'clear' parameter. These macros can also be used to set a multiple-bit bit pattern using a