[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 05/13] softfloat: add float{32, 64}_is_zero_o
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] [PATCH v6 05/13] softfloat: add float{32, 64}_is_zero_or_normal |
Date: |
Mon, 03 Dec 2018 14:16:28 +0000 |
User-agent: |
mu4e 1.1.0; emacs 26.1.90 |
Emilio G. Cota <address@hidden> writes:
> These will gain some users very soon.
>
> Signed-off-by: Emilio G. Cota <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
> ---
> include/fpu/softfloat.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
> index 9eeccd88a5..38a5e99cf3 100644
> --- a/include/fpu/softfloat.h
> +++ b/include/fpu/softfloat.h
> @@ -474,6 +474,11 @@ static inline bool float32_is_denormal(float32 a)
> return float32_is_zero_or_denormal(a) && !float32_is_zero(a);
> }
>
> +static inline bool float32_is_zero_or_normal(float32 a)
> +{
> + return float32_is_normal(a) || float32_is_zero(a);
> +}
> +
> static inline float32 float32_set_sign(float32 a, int sign)
> {
> return make_float32((float32_val(a) & 0x7fffffff) | (sign << 31));
> @@ -625,6 +630,11 @@ static inline bool float64_is_denormal(float64 a)
> return float64_is_zero_or_denormal(a) && !float64_is_zero(a);
> }
>
> +static inline bool float64_is_zero_or_normal(float64 a)
> +{
> + return float64_is_normal(a) || float64_is_zero(a);
> +}
> +
> static inline float64 float64_set_sign(float64 a, int sign)
> {
> return make_float64((float64_val(a) & 0x7fffffffffffffffULL)
--
Alex Bennée
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v6 05/13] softfloat: add float{32, 64}_is_zero_or_normal,
Alex Bennée <=