include/qemu/host-utils.h: Simplify the compiler check in mulu128()
commit21d4e557e2fd0cb7f10b632b35f51146a1b6d892
authorThomas Huth <thuth@redhat.com>
Thu, 21 Jul 2022 07:48:09 +0000 (21 09:48 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 4 Aug 2022 11:49:47 +0000 (4 13:49 +0200)
treebe34257d4acfeebe952a28316957f0ed4353fadd
parent1e2dd311491565a58b30f29e71c6e429fc8e7e84
include/qemu/host-utils.h: Simplify the compiler check in mulu128()

We currently require at least GCC 7.4 or Clang 6.0 for compiling QEMU.
GCC has __builtin_mul_overflow since version 5 already, and Clang 6.0
also provides this built-in function (see its documentation on this page:
https://releases.llvm.org/6.0.0/tools/clang/docs/LanguageExtensions.html ).
So we can simplify the #if statement here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220721074809.1513357-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
include/qemu/host-utils.h