Skip to content

qemu/bswap: Use compiler __builtin_bswap()

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest6 patches 6 repliesIn review

Changes in v3 from the cover letter

- Rebased adapting ./configure changes to meson

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6qemu/bswap: Replace bswapXX() by compiler __builtin_bswap()include/qemu/bswap.h+6 -250 replies
2/6qemu/bswap: Replace bswapXXs() by compiler __builtin_bswap()include/qemu/bswap.h+9 -70 replies
3/6qemu/bswap: Remove <byteswap.h> dependencyinclude/qemu/bswap.h meson.build+0 -230 replies
4/6qemu/bswap: Use compiler __builtin_bswap() on Haikuinclude/qemu/bswap.h+0 -20 replies
5/6qemu/bswap: Use compiler __builtin_bswap() on FreeBSDinclude/qemu/bswap.h+0 -20 replies
6/6qemu/bswap: Use compiler __builtin_bswap() on NetBSDinclude/qemu/bswap.h meson.build+0 -150 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard Henderson
SeriesR-b
1/6R-b
2/6R-b
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] qemu/bswap: Use compiler __builtin_bswap()

Implement Richard's suggestion to use __builtin_bswap().

Convert to __builtin_bswap() one patch per OS to simplify maintainers review.

Since v2:
- Rebased adapting ./configure changes to meson

Since v1:
- Remove the Haiku/BSD ifdef'ry (Peter)
- Include the Haiku VM image from Alexander

Philippe Mathieu-Daudé (6):
qemu/bswap: Replace bswapXX() by compiler __builtin_bswap() qemu/bswap: Replace bswapXXs() by compiler __builtin_bswap() qemu/bswap: Remove <byteswap.h> dependency qemu/bswap: Use compiler __builtin_bswap() on Haiku qemu/bswap: Use compiler __builtin_bswap() on FreeBSD qemu/bswap: Use compiler __builtin_bswap() on NetBSD

 include/qemu/bswap.h | 83 ++++++++------------------------------------
 meson.build          |  6 ----
 2 files changed, 15 insertions(+), 74 deletions(-)
Signature · 1 line
2.38.1