lkml.org 
[lkml]   [2024]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] riscv: Optimize hweight API with Zbb extension
From
Date
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



\
 
 \ /
  Last update: 2024-05-27 14:24    [W:3.009 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site