Re: [PATCH] x86: Add optimized popcnt variants

From: H. Peter Anvin
Date: Tue Feb 23 2010 - 12:39:09 EST


On 02/23/2010 07:58 AM, Borislav Petkov wrote:

Hmm, we cannot do that with the current design since __arch_hweight64
is being inlined into every callsite and AFAICT we would have to build
every callsite with "-fcall-saved-rdi" which is clearly too much. The
explicit "=D" dummy constraint is straightforward, instead.


Uh... the -fcall-saved-rdi would go with all the other ones. Assuming it can actually work and that gcc doesn't choke on an inbound argument being saved.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/