s390: Provide optimized __arch_hweight*() implementations

Make use of the popcnt instruction to provide optimized __arch_hweight*()
implementations. The generated code is shorter and avoids rather expensive
functions calls.

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
Heiko Carstens 2024-06-09 21:02:19 +02:00 • committed by Alexander Gordeev
commit 7c67928648
3 changed files with 79 additions and 2 deletions