]> git.proxmox.com Git - mirror_qemu.git/commit - fpu/softfloat.c
softfloat: Replace countLeadingZeros32/64 with clz32/64
authorThomas Huth <thuth@redhat.com>
Fri, 28 Sep 2018 07:01:35 +0000 (09:01 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Oct 2018 17:57:41 +0000 (12:57 -0500)
commit0019d5c3a18c31604fb55f9cec3ceb13999c4866
treec4f719e072b86548cc72d2e663b956fc4e6f998d
parent3ac1f81329f4dfdc10a51e180f9cf28dbcb02a3c
softfloat: Replace countLeadingZeros32/64 with clz32/64

Our minimum required compiler for compiling QEMU is GCC 4.1 these days,
so we can drop the support for compilers which do not provide the
__builtin_clz*() functions yet. Since the countLeadingZeros32/64 are
then identical to the clz32/64 functions, and we do not have to sync
the softloat 2 codebase with upstream anymore (softloat 3 is a complete
rewrite) we can simply replace the functions with our QEMU versions.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1538118095-7003-1-git-send-email-thuth@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
fpu/softfloat.c
include/fpu/softfloat-macros.h