mirror of https://gitee.com/openkylin/qemu.git
fpu/softfloat: Remove floatX_maybe_silence_nan
These functions are now unused. Tested-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
4885312f47
commit
5240a30dcc
|
@ -364,19 +364,6 @@ float16 float16_silence_nan(float16 a, float_status *status)
|
||||||
#endif
|
#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
|
| Returns 1 if the single-precision floating-point value `a' is a quiet
|
||||||
| NaN; otherwise returns 0.
|
| NaN; otherwise returns 0.
|
||||||
|
@ -438,18 +425,6 @@ float32 float32_silence_nan(float32 a, float_status *status)
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
| Returns the result of converting the single-precision floating-point NaN
|
||||||
|
@ -864,18 +839,6 @@ float64 float64_silence_nan(float64 a, float_status *status)
|
||||||
#endif
|
#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
|
| Returns the result of converting the double-precision floating-point NaN
|
||||||
|
@ -1037,19 +1000,6 @@ floatx80 floatx80_silence_nan(floatx80 a, float_status *status)
|
||||||
#endif
|
#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-
|
| 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
|
| point NaN `a' to the canonical NaN format. If `a' is a signaling NaN, the
|
||||||
|
@ -1204,19 +1154,6 @@ float128 float128_silence_nan(float128 a, float_status *status)
|
||||||
#endif
|
#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
|
| 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
|
| `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid
|
||||||
|
|
|
@ -258,7 +258,6 @@ int float16_compare_quiet(float16, float16, float_status *status);
|
||||||
int float16_is_quiet_nan(float16, float_status *status);
|
int float16_is_quiet_nan(float16, float_status *status);
|
||||||
int float16_is_signaling_nan(float16, float_status *status);
|
int float16_is_signaling_nan(float16, float_status *status);
|
||||||
float16 float16_silence_nan(float16, float_status *status);
|
float16 float16_silence_nan(float16, float_status *status);
|
||||||
float16 float16_maybe_silence_nan(float16, float_status *status);
|
|
||||||
|
|
||||||
static inline int float16_is_any_nan(float16 a)
|
static inline int float16_is_any_nan(float16 a)
|
||||||
{
|
{
|
||||||
|
@ -370,7 +369,6 @@ float32 float32_maxnummag(float32, float32, float_status *status);
|
||||||
int float32_is_quiet_nan(float32, float_status *status);
|
int float32_is_quiet_nan(float32, float_status *status);
|
||||||
int float32_is_signaling_nan(float32, float_status *status);
|
int float32_is_signaling_nan(float32, float_status *status);
|
||||||
float32 float32_silence_nan(float32, float_status *status);
|
float32 float32_silence_nan(float32, float_status *status);
|
||||||
float32 float32_maybe_silence_nan(float32, float_status *status);
|
|
||||||
float32 float32_scalbn(float32, int, float_status *status);
|
float32 float32_scalbn(float32, int, float_status *status);
|
||||||
|
|
||||||
static inline float32 float32_abs(float32 a)
|
static inline float32 float32_abs(float32 a)
|
||||||
|
@ -500,7 +498,6 @@ float64 float64_maxnummag(float64, float64, float_status *status);
|
||||||
int float64_is_quiet_nan(float64 a, float_status *status);
|
int float64_is_quiet_nan(float64 a, float_status *status);
|
||||||
int float64_is_signaling_nan(float64, float_status *status);
|
int float64_is_signaling_nan(float64, float_status *status);
|
||||||
float64 float64_silence_nan(float64, float_status *status);
|
float64 float64_silence_nan(float64, float_status *status);
|
||||||
float64 float64_maybe_silence_nan(float64, float_status *status);
|
|
||||||
float64 float64_scalbn(float64, int, float_status *status);
|
float64 float64_scalbn(float64, int, float_status *status);
|
||||||
|
|
||||||
static inline float64 float64_abs(float64 a)
|
static inline float64 float64_abs(float64 a)
|
||||||
|
@ -604,7 +601,6 @@ int floatx80_compare_quiet(floatx80, floatx80, float_status *status);
|
||||||
int floatx80_is_quiet_nan(floatx80, float_status *status);
|
int floatx80_is_quiet_nan(floatx80, float_status *status);
|
||||||
int floatx80_is_signaling_nan(floatx80, float_status *status);
|
int floatx80_is_signaling_nan(floatx80, float_status *status);
|
||||||
floatx80 floatx80_silence_nan(floatx80, float_status *status);
|
floatx80 floatx80_silence_nan(floatx80, float_status *status);
|
||||||
floatx80 floatx80_maybe_silence_nan(floatx80, float_status *status);
|
|
||||||
floatx80 floatx80_scalbn(floatx80, int, float_status *status);
|
floatx80 floatx80_scalbn(floatx80, int, float_status *status);
|
||||||
|
|
||||||
static inline floatx80 floatx80_abs(floatx80 a)
|
static inline floatx80 floatx80_abs(floatx80 a)
|
||||||
|
@ -816,7 +812,6 @@ int float128_compare_quiet(float128, float128, float_status *status);
|
||||||
int float128_is_quiet_nan(float128, float_status *status);
|
int float128_is_quiet_nan(float128, float_status *status);
|
||||||
int float128_is_signaling_nan(float128, float_status *status);
|
int float128_is_signaling_nan(float128, float_status *status);
|
||||||
float128 float128_silence_nan(float128, float_status *status);
|
float128 float128_silence_nan(float128, float_status *status);
|
||||||
float128 float128_maybe_silence_nan(float128, float_status *status);
|
|
||||||
float128 float128_scalbn(float128, int, float_status *status);
|
float128 float128_scalbn(float128, int, float_status *status);
|
||||||
|
|
||||||
static inline float128 float128_abs(float128 a)
|
static inline float128 float128_abs(float128 a)
|
||||||
|
|
Loading…
Reference in New Issue