[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 05/20] include/fpu/softfloat: implement float
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2 05/20] include/fpu/softfloat: implement float16_set_sign helper |
Date: |
Fri, 12 Jan 2018 13:43:40 +0000 |
On 9 January 2018 at 12:22, Alex Bennée <address@hidden> wrote:
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> include/fpu/softfloat.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
> index dc71b01dba..8ab5d0df47 100644
> --- a/include/fpu/softfloat.h
> +++ b/include/fpu/softfloat.h
> @@ -363,6 +363,11 @@ static inline float16 float16_chs(float16 a)
> return make_float16(float16_val(a) ^ 0x8000);
> }
>
> +static inline float16 float16_set_sign(float16 a, int sign)
> +{
> + return make_float16((float16_val(a) & 0x7fff) | (sign << 15));
> +}
> +
>
> /*----------------------------------------------------------------------------
> | The pattern for a default generated half-precision NaN.
>
> *----------------------------------------------------------------------------*/
> --
Reviewed-by: Peter Maydell <address@hidden>
thanks
-- PMM
- [Qemu-devel] [PATCH v2 00/20] re-factor softfloat and add fp16 functions, Alex Bennée, 2018/01/09
- [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Alex Bennée, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Laurent Vivier, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Aurelien Jarno, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Peter Maydell, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Laurent Vivier, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Peter Maydell, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Richard Henderson, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES, Alex Bennée, 2018/01/09
[Qemu-devel] [PATCH v2 05/20] include/fpu/softfloat: implement float16_set_sign helper, Alex Bennée, 2018/01/09
- Re: [Qemu-devel] [PATCH v2 05/20] include/fpu/softfloat: implement float16_set_sign helper,
Peter Maydell <=
[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
[Qemu-devel] [PATCH v2 01/20] fpu/softfloat: implement float16_squash_input_denormal, Alex Bennée, 2018/01/09