Cc: David Brownell <david-b@...>, Linux Kernel list <linux-kernel@...>, Felipe Balbi <felipebalbi@...>, Haavard Skinnemoen <hskinnemoen@...>, Andrew Victor <andrew@...>, Tony Lindgren <tony@...>, eric miao <eric.y.miao@...>, Kevin Hilman <khilman@...>, Paul Mundt <lethal@...>, Ben Dooks <ben@...>
... but not more efficiently implemented.
Your version requires code to do the shift on live data at runtime.
David's version lets the compiler create the mask once, at compile-time.
b.g.
--
Bill Gatliff
bgat@billgatliff.com
-