Re: [PATCH v3 5/5] x86/bitops: Use the POPCNT instruction when available

2024-09-05 Thread Jan Beulich
On 05.09.2024 00:55, Andrew Cooper wrote: > It has existed in x86 CPUs since 2008, so we're only 16 years late adding > support. With all the other scafolding in place, implement arch_hweightl() > for x86. > > The only complication is that the call to arch_generic_hweightl() is behind > the compi

[PATCH v3 5/5] x86/bitops: Use the POPCNT instruction when available

2024-09-04 Thread Andrew Cooper
It has existed in x86 CPUs since 2008, so we're only 16 years late adding support. With all the other scafolding in place, implement arch_hweightl() for x86. The only complication is that the call to arch_generic_hweightl() is behind the compilers back. Address this by writing it in ASM and ensu