Re: [PATCH] riscv: Optimize hweight API with Zbb extension

From: patchwork-bot+linux-riscv
Date: Sat Jan 20 2024 - 16:12:29 EST


Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@xxxxxxxxxxxx>:

On Sun, 12 Nov 2023 17:52:44 +0800 you wrote:
> The Hamming Weight of a number is the total number of bits set in it, so
> the cpop/cpopw instruction from Zbb extension can be used to accelerate
> hweight() API.
>
> Signed-off-by: Xiao Wang <xiao.w.wang@xxxxxxxxx>
> ---
> arch/riscv/include/asm/arch_hweight.h | 78 +++++++++++++++++++++++++++
> arch/riscv/include/asm/bitops.h | 4 +-
> 2 files changed, 81 insertions(+), 1 deletion(-)
> create mode 100644 arch/riscv/include/asm/arch_hweight.h

Here is the summary with links:
- riscv: Optimize hweight API with Zbb extension
https://git.kernel.org/riscv/c/55ca8d7aa2af

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html