]> git.ipfire.org Git - thirdparty/linux.git/commit
s390: Provide optimized __arch_hweight*() implementations
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 9 Jun 2024 19:02:19 +0000 (21:02 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 24 Jun 2024 09:12:39 +0000 (11:12 +0200)
commit7c67928648188d193c9f73679f7e6aa67d088237
tree6fad25c850bde3014c0db794ce7f050f456ab360
parent447360d75cf473d4b1048a7204443262f3f60758
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>
arch/s390/Kconfig
arch/s390/include/asm/arch_hweight.h [new file with mode: 0644]
arch/s390/include/asm/bitops.h