[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 04/20] include/fpu/softfloat: implement float
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2 04/20] include/fpu/softfloat: implement float16_chs helper |
Date: |
Fri, 12 Jan 2018 13:43:18 +0000 |
On 9 January 2018 at 12:22, Alex Bennée <address@hidden> wrote:
> Signed-off-by: Alex Bennée <address@hidden>
> Reviewed-by: Richard Henderson <address@hidden>
> ---
> include/fpu/softfloat.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
> index cfc615008d..dc71b01dba 100644
> --- a/include/fpu/softfloat.h
> +++ b/include/fpu/softfloat.h
> @@ -354,6 +354,15 @@ static inline float16 float16_abs(float16 a)
> */
> return make_float16(float16_val(a) & 0x7fff);
> }
> +
> +static inline float16 float16_chs(float16 a)
> +{
> + /* Note that chs does *not* handle NaN specially, nor does
> + * it flush denormal inputs to zero.
> + */
> + return make_float16(float16_val(a) ^ 0x8000);
> +}
> +
Reviewed-by: Peter Maydell <address@hidden>
thanks
-- PMM
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, (continued)
- [Qemu-devel] [PATCH v2 05/20] include/fpu/softfloat: implement float16_set_sign helper, Alex Bennée, 2018/01/09
- [Qemu-devel] [PATCH v2 03/20] include/fpu/softfloat: implement float16_abs helper, Alex Bennée, 2018/01/09
- [Qemu-devel] [PATCH v2 06/20] include/fpu/softfloat: add some float16 constants, Alex Bennée, 2018/01/09
- [Qemu-devel] [PATCH v2 04/20] include/fpu/softfloat: implement float16_chs helper, Alex Bennée, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 04/20] include/fpu/softfloat: implement float16_chs helper,
Peter Maydell <=
- [Qemu-devel] [PATCH v2 01/20] fpu/softfloat: implement float16_squash_input_denormal, Alex Bennée, 2018/01/09
- [Qemu-devel] [PATCH v2 08/20] fpu/softfloat: improve comments on ARM NaN propagation, Alex Bennée, 2018/01/09
- [Qemu-devel] [PATCH v2 09/20] fpu/softfloat: move the extract functions to the top of the file, Alex Bennée, 2018/01/09
- [Qemu-devel] [PATCH v2 12/20] fpu/softfloat: re-factor mul, Alex Bennée, 2018/01/09