mbox series

[0/4] qemu/bswap: Use compiler __builtin_bswap()

Message ID 20200923100220.674903-1-philmd@redhat.com
Headers show
Series qemu/bswap: Use compiler __builtin_bswap() | expand

Message

Philippe Mathieu-Daudé Sept. 23, 2020, 10:02 a.m. UTC
Implement Richard's suggestion to use __builtin_bswap().

const_XX() not updated. We could use le_bswap() definitions
but they are undefined, not sure yet what is the best way.
Meanwhile I figure this out, these patches are ready for review.

Philippe Mathieu-Daudé (4):
  qemu/bswap: Remove unused qemu_bswap_len()
  qemu/bswap: Replace bswapXX() by compiler __builtin_bswap()
  qemu/bswap: Replace bswapXXs() by compiler __builtin_bswap()
  qemu/bswap: Remove <byteswap.h> dependency

 configure            | 13 ---------
 include/qemu/bswap.h | 69 +++++++++-----------------------------------
 2 files changed, 13 insertions(+), 69 deletions(-)