From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org
Subject: Re: [Qemu-devel] [PATCH v5 21/28] fpu/softfloat: Remove floatX_maybe_silence_nan
Date: Tue, 15 May 2018 14:41:01 +0100 [thread overview]
Message-ID: <87d0xxf34i.fsf@linaro.org> (raw)
In-Reply-To: <20180514221219.7091-22-richard.henderson@linaro.org>
Richard Henderson <richard.henderson@linaro.org> writes:
> These functions are now unused.
>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> fpu/softfloat-specialize.h | 63 --------------------------------------
> include/fpu/softfloat.h | 5 ---
> 2 files changed, 68 deletions(-)
>
> diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h
> index 4fa068a5dc..d7033b7757 100644
> --- a/fpu/softfloat-specialize.h
> +++ b/fpu/softfloat-specialize.h
> @@ -364,19 +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,18 +425,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
> @@ -864,18 +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
> @@ -1037,19 +1000,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 +1154,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
> diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
> index a6860e858d..69f4dbc4db 100644
> --- a/include/fpu/softfloat.h
> +++ b/include/fpu/softfloat.h
> @@ -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_signaling_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)
> {
> @@ -370,7 +369,6 @@ float32 float32_maxnummag(float32, float32, float_status *status);
> int float32_is_quiet_nan(float32, float_status *status);
> int float32_is_signaling_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);
>
> 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_signaling_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);
>
> 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_signaling_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);
>
> 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_signaling_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);
>
> static inline float128 float128_abs(float128 a)
--
Alex Bennée
next prev parent reply other threads:[~2018-05-15 13:41 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-14 22:11 [Qemu-devel] [PATCH v5 00/28] softfloat patch roundup Richard Henderson
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 01/28] fpu/softfloat: Fix conversion from uint64 to float128 Richard Henderson
2018-05-15 10:52 ` Alex Bennée
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 02/28] fpu/softfloat: Merge NO_SIGNALING_NANS definitions Richard Henderson
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 03/28] fpu/softfloat: Split floatXX_silence_nan from floatXX_maybe_silence_nan Richard Henderson
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 04/28] fpu/softfloat: Move softfloat-specialize.h below FloatParts definition Richard Henderson
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 05/28] fpu/softfloat: Canonicalize NaN fraction Richard Henderson
2018-05-15 10:50 ` Peter Maydell
2018-05-15 11:44 ` Alex Bennée
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 06/28] fpu/softfloat: Introduce parts_is_snan_frac Richard Henderson
2018-05-15 11:44 ` Alex Bennée
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 07/28] fpu/softfloat: Replace float_class_dnan with parts_default_nan Richard Henderson
2018-05-15 11:46 ` Alex Bennée
2018-05-14 22:11 ` [Qemu-devel] [PATCH v5 08/28] fpu/softfloat: Replace float_class_msnan with parts_silence_nan Richard Henderson
2018-05-15 11:51 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 09/28] target/arm: Use floatX_silence_nan when we have already checked for SNaN Richard Henderson
2018-05-15 13:19 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 10/28] target/arm: convert conversion helpers to fpst/ahp_flag Richard Henderson
2018-05-15 10:08 ` Peter Maydell
2018-05-15 15:01 ` Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 11/28] target/arm: squash FZ16 behaviour for conversions Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 12/28] target/arm: Remove floatX_maybe_silence_nan from conversions Richard Henderson
2018-05-15 13:34 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 13/28] fpu/softfloat: Partial support for ARM Alternative half-precision Richard Henderson
2018-05-15 10:52 ` Peter Maydell
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 14/28] fpu/softfloat: re-factor float to float conversions Richard Henderson
2018-05-15 10:53 ` Peter Maydell
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 15/28] target/hppa: Remove floatX_maybe_silence_nan from conversions Richard Henderson
2018-05-15 13:39 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 16/28] target/m68k: Use floatX_silence_nan when we have already checked for SNaN Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 17/28] target/mips: Remove floatX_maybe_silence_nan from conversions Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 18/28] target/riscv: " Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 19/28] target/s390x: " Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 20/28] fpu/softfloat: Use float*_silence_nan in propagateFloat*NaN Richard Henderson
2018-05-15 13:40 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 21/28] fpu/softfloat: Remove floatX_maybe_silence_nan Richard Henderson
2018-05-15 13:41 ` Alex Bennée [this message]
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 22/28] fpu/softfloat: Specialize on snan_bit_is_one Richard Henderson
2018-05-15 10:57 ` Peter Maydell
2018-05-15 13:51 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 23/28] fpu/softfloat: Make is_nan et al available to softfloat-specialize.h Richard Henderson
2018-05-15 10:59 ` Peter Maydell
2018-05-15 13:51 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 24/28] fpu/softfloat: Pass FloatClass to pickNaN Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 25/28] fpu/softfloat: Pass FloatClass to pickNaNMulAdd Richard Henderson
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 26/28] fpu/softfloat: Define floatN_default_nan in terms of parts_default_nan Richard Henderson
2018-05-15 10:38 ` Peter Maydell
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 27/28] fpu/softfloat: Clean up parts_default_nan Richard Henderson
2018-05-15 13:42 ` Alex Bennée
2018-05-14 22:12 ` [Qemu-devel] [PATCH v5 28/28] fpu/softfloat: Define floatN_silence_nan in terms of parts_silence_nan Richard Henderson
2018-05-15 13:45 ` Alex Bennée
2018-05-15 15:41 ` Richard Henderson
2018-05-15 16:14 ` Richard Henderson
2018-05-15 11:43 ` [Qemu-devel] [PATCH v5 00/28] softfloat patch roundup Alex Bennée
2018-05-15 13:57 ` Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d0xxf34i.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).