Messages in this thread | | | Date | Mon, 23 Feb 2009 12:03:50 -0500 (EST) | From | Christoph Lameter <> | Subject | Re: [PATCH 04/20] Convert gfp_zone() to use a table of precalculated value |
| |
On Mon, 23 Feb 2009, Mel Gorman wrote:
> > Maybe we can come up with a version of gfp_zone that has no branches and > > no lookup? > > > > Ideally, yes, but I didn't spot any obvious way of figuring it out at > compile time then or now. Suggestions?
Can we just mask the relevant bits and then find the highest set bit? With some rearrangement of gfp flags this may work.
| |