include/qemu/int128.h: introduce bswap128s
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Thu, 26 Aug 2021 14:56:55 +0000 (11:56 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Aug 2021 02:43:11 +0000 (12:43 +1000)
commit2484cd9c777f6877b178901bcb26663c411fc231
tree296e7ff09d3e24ccb99ac48ccc0874c7e0f18e6c
parentf297c4c605e5f4412d12c4d7241df62326f47542
include/qemu/int128.h: introduce bswap128s

Changes the current bswap128 implementation to use __builtin_bswap128
when available, adds a bswap128 implementation for !CONFIG_INT128
builds, and introduces bswap128s based on bswap128.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20210826145656.2507213-2-matheus.ferst@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
include/qemu/int128.h