mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
softfloat: Pass have_snan to pickNaNMulAdd
The new implementation of pickNaNMulAdd() will find it convenient to know whether at least one of the three arguments to the muladd was a signaling NaN. We already calculate that in the caller, so pass it in as a new bool have_snan. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241202131347.498124-15-peter.maydell@linaro.org
This commit is contained in:
parent
2bf5629c97
commit
d62c734d52
2 changed files with 4 additions and 3 deletions
|
@ -473,7 +473,7 @@ static int pickNaN(FloatClass a_cls, FloatClass b_cls,
|
|||
| Return values : 0 : a; 1 : b; 2 : c; 3 : default-NaN
|
||||
*----------------------------------------------------------------------------*/
|
||||
static int pickNaNMulAdd(FloatClass a_cls, FloatClass b_cls, FloatClass c_cls,
|
||||
bool infzero, float_status *status)
|
||||
bool infzero, bool have_snan, float_status *status)
|
||||
{
|
||||
/*
|
||||
* We guarantee not to require the target to tell us how to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue