Skip to content

xen/bitops: hweight() cleanup/improvements

Andrew Cooper xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 12 repliesIn review
  2. v211 patches 13 repliesSuperseded
  3. v19 patches 30 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xen/bitops: Reinstate the please tidy messagexen/include/xen/bitops.h+2 -02 replies
2/5xen/bitops: Drop the remnants of hweight{8,16}()xen/arch/arm/include/asm/bitops.h xen/arch/ppc/include/asm/bitops.h xen/arch/x86/include/asm/bitops.h +1 more+0 -233 replies
3/5xen/bitops: Implement hweight32() in terms of hweightl()xen/arch/arm/include/asm/bitops.h xen/arch/ppc/include/asm/bitops.h xen/arch/x86/include/asm/bitops.h +1 more+5 -35 replies
4/5xen/bitops: Implement hweight64() in terms of hweight{l,32}()xen/arch/arm/include/asm/bitops.h xen/arch/ppc/include/asm/bitops.h xen/arch/x86/include/asm/bitops.h +2 more+11 -611 reply
5/5x86/bitops: Use the POPCNT instruction when availablexen/arch/x86/include/asm/bitops.h xen/lib/Makefile xen/lib/x86-generic-hweightl.c+95 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJan BeulichStefano StabelliniShawn Anastasio
1/5A-b
2/5A-b A-b A-b
3/5A-b A-b A-b
4/5R-b A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] xen/bitops: hweight() cleanup/improvements

The next phase of bitops cleanup. This series:

1) Untangles the mess around hweight()
2) Removes some unwise uses of hweight()
3) Makes it work transparently for RISC-V
4) Use the POPCNT instruction on x86 when available

6 patches from the v2 posting has been committed. See the remainder for v3 changes.

Andrew Cooper (5):
xen/bitops: Reinstate the please tidy message xen/bitops: Drop the remnants of hweight{8,16}() xen/bitops: Implement hweight32() in terms of hweightl() xen/bitops: Implement hweight64() in terms of hweight{l,32}() x86/bitops: Use the POPCNT instruction when available

 xen/arch/arm/include/asm/bitops.h | 11 -----
 xen/arch/ppc/include/asm/bitops.h | 11 -----
 xen/arch/x86/include/asm/bitops.h | 32 +++++++++-----
 xen/common/bitops.c               |  3 ++
 xen/include/xen/bitops.h          | 69 +++++++-----------------------
 xen/lib/Makefile                  |  1 +
 xen/lib/x86-generic-hweightl.c    | 71 +++++++++++++++++++++++++++++++
 7 files changed, 112 insertions(+), 86 deletions(-)
 create mode 100644 xen/lib/x86-generic-hweightl.c
Signature · 1 line
2.39.2