OSDN Git Service

qemu/bswap: Use compiler __builtin_bswap() on FreeBSD
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 11 Jan 2023 16:31:46 +0000 (17:31 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 26 Jan 2023 12:25:07 +0000 (13:25 +0100)
commita97cfd56d956de0a24cb0d1c86d05e4545eb6fe7
treeea5dd2b92137ade7f46d5b0832e2d34e761de7c4
parent91fdbf6dfae20c5e409f82f75776f688ae71c6dc
qemu/bswap: Use compiler __builtin_bswap() on FreeBSD

Since commit efc6c070aca ("configure: Add a test for the minimum
compiler version") the minimum compiler version required for GCC
is 4.8, which supports __builtin_bswap().
Remove the FreeBSD specific ifdef'ry.

This reverts commit de03c3164accc21311c39327601fcdd95da301f3
("bswap: Fix build on FreeBSD 10.0").

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230111163147.71761-6-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/qemu/bswap.h