diff options
author | Xiao Wang <[email protected]> | 2023-11-12 17:52:44 +0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-01-17 18:18:40 -0800 |
commit | 55ca8d7aa2af3ebdb6f85cccf1b0703d031c1678 (patch) | |
tree | ae97ea25f9f1e3a4c91cca7520bad636f3fa4db5 /tools/perf/util/trace-event-scripting.c | |
parent | c4db7ff7a9edf504752704f08aabb5554bd6c37f (diff) |
riscv: Optimize hweight API with Zbb extension
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 <[email protected]>
Reviewed-by: Charlie Jenkins <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions