Thread (10 messages) flat view 10 messages, 5 authors, 2007-08-16

Re: [PATCH v2] powerpc: add setmaskedbits macros

From: Timur Tabi <hidden>
Date: 2007-08-16 17:46:12

Benjamin Herrenschmidt wrote:
quoted
The second example is actually a trick that lets me set some bits and clear 
others in one shot, so for the gumr_h register, all of the above values are 
single bits.  I guess that's not a good example.
Such tricks deserve at least a comment.
Would it be better if the function were called setclrbits_xxx(), and advertise 
that it can be used to set multi-bit fields *and* set and clear bits at the 
same time?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help