Messages in this thread | | | Subject | Re: [PATCH] riscv: Optimize hweight API with Zbb extension | From | patchwork-bot+linux-riscv@kernel ... | Date | Sat, 20 Jan 2024 21:09:58 +0000 |
| |
Hello:
This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt <palmer@rivosinc.com>:
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@intel.com> > --- > 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
| |