]> git.ipfire.org Git - thirdparty/qemu.git/commit
softfloat: Support halving the result of muladd operation
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2014 10:35:50 +0000 (10:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2014 10:35:50 +0000 (10:35 +0000)
commit67d43538aee10b6cfe8f3606c69187a3e142a2ba
tree4eb0637464a3011cc1ecc91b4e4ae9e6867d8445
parentbc242f9bb6324a50e7572c0997904b66b630f73a
softfloat: Support halving the result of muladd operation

The ARMv8 instruction set includes a fused floating point
reciprocal square root step instruction which demands an
"(x * y + z) / 2" fused operation. Support this by adding
a flag to the softfloat muladd operations which requests
that the result is halved before rounding.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
fpu/softfloat.c
include/fpu/softfloat.h