mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 05:16:46 +00:00
fpu/softfloat: Remove floatX_maybe_silence_nan
These functions are now unused. Backports commit 5240a30dcc6ca85dc9352f351e2cc326402288ed from qemu
This commit is contained in:
parent
2eb50e8117
commit
9810a6d9d6
|
@ -364,18 +364,6 @@ float16 float16_silence_nan(float16 a, float_status *status)
|
|||
#endif
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns a quiet NaN if the half-precision floating point value `a' is a
|
||||
| signaling NaN; otherwise returns `a'.
|
||||
*----------------------------------------------------------------------------*/
|
||||
float16 float16_maybe_silence_nan(float16 a, float_status *status)
|
||||
{
|
||||
if (float16_is_signaling_nan(a, status)) {
|
||||
return float16_silence_nan(a, status);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns 1 if the single-precision floating-point value `a' is a quiet
|
||||
| NaN; otherwise returns 0.
|
||||
|
@ -438,19 +426,6 @@ float32 float32_silence_nan(float32 a, float_status *status)
|
|||
#endif
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns a quiet NaN if the single-precision floating point value `a' is a
|
||||
| signaling NaN; otherwise returns `a'.
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
float32 float32_maybe_silence_nan(float32 a, float_status *status)
|
||||
{
|
||||
if (float32_is_signaling_nan(a, status)) {
|
||||
return float32_silence_nan(a, status);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns the result of converting the single-precision floating-point NaN
|
||||
| `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid
|
||||
|
@ -864,19 +839,6 @@ float64 float64_silence_nan(float64 a, float_status *status)
|
|||
#endif
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns a quiet NaN if the double-precision floating point value `a' is a
|
||||
| signaling NaN; otherwise returns `a'.
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
float64 float64_maybe_silence_nan(float64 a, float_status *status)
|
||||
{
|
||||
if (float64_is_signaling_nan(a, status)) {
|
||||
return float64_silence_nan(a, status);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns the result of converting the double-precision floating-point NaN
|
||||
| `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid
|
||||
|
@ -1037,19 +999,6 @@ floatx80 floatx80_silence_nan(floatx80 a, float_status *status)
|
|||
#endif
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns a quiet NaN if the extended double-precision floating point value
|
||||
| `a' is a signaling NaN; otherwise returns `a'.
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
floatx80 floatx80_maybe_silence_nan(floatx80 a, float_status *status)
|
||||
{
|
||||
if (floatx80_is_signaling_nan(a, status)) {
|
||||
return floatx80_silence_nan(a, status);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns the result of converting the extended double-precision floating-
|
||||
| point NaN `a' to the canonical NaN format. If `a' is a signaling NaN, the
|
||||
|
@ -1204,19 +1153,6 @@ float128 float128_silence_nan(float128 a, float_status *status)
|
|||
#endif
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns a quiet NaN if the quadruple-precision floating point value `a' is
|
||||
| a signaling NaN; otherwise returns `a'.
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
float128 float128_maybe_silence_nan(float128 a, float_status *status)
|
||||
{
|
||||
if (float128_is_signaling_nan(a, status)) {
|
||||
return float128_silence_nan(a, status);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| Returns the result of converting the quadruple-precision floating-point NaN
|
||||
| `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid
|
||||
|
|
Loading…
Reference in a new issue