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(-)
--
2.26.2