On Thu, Dec 01, 2005 at 11:57:21PM -0600, olof wrote: > Yep, that's even better. Yet another twist is to do: > > if ((npages << TCE_PAGE_FACTOR) == 1) Nevermind, my verification of the above was bad, I tried it with a constant instead of variable. GCC isn't smart enough to optimize that away for variable statements. Go with your solution. -Olof