Messages in this thread | | | Date | Fri, 19 Feb 2010 08:53:32 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] x86: Add optimized popcnt variants |
| |
On 02/19/2010 08:45 AM, Borislav Petkov wrote: >> >> You're still not inlining these. They should be: there is absolutely no >> reason for code size to not inline them anymore. > > Isn't better to have only those 4 locations for apply_alternatives to > patch wrt to popcnt instead of sprinkling alternatives sections around > the kernel in every callsite of hweight and its users? Or is the aim to > optimize even that "call __arch_hweightXX" away? >
That's the idea, yes. We use inline alternatives in quite a few other places.
-hpa
-- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
| |