[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 02/10] softfloat: add NO_SIGNALING_NANS
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2 02/10] softfloat: add NO_SIGNALING_NANS |
Date: |
Sun, 9 Sep 2012 17:18:03 +0100 |
On 9 September 2012 17:04, Max Filippov <address@hidden> wrote:
> Architectures that don't have signaling NaNs can define
> NO_SIGNALING_NANS, it will make float*_is_quiet_nan return 1 for any NaN
> and float*_is_signaling_nan always return 0.
>
> Signed-off-by: Max Filippov <address@hidden>
> ---
> fpu/softfloat-specialize.h | 64
> ++++++++++++++++++++++++++++++++++++++++++++
> fpu/softfloat.h | 5 +++
> 2 files changed, 69 insertions(+), 0 deletions(-)
>
> diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h
> index 4902450..2b203b9 100644
> --- a/fpu/softfloat-specialize.h
> +++ b/fpu/softfloat-specialize.h
> @@ -41,6 +41,10 @@ these four paragraphs for those parts of this code that
> are retained.
> #define SNAN_BIT_IS_ONE 0
> #endif
>
> +#if defined(TARGET_XTENSA)
> +#define NO_SIGNALING_NANS 1
> +#endif
This could use a comment, I think.
/* Define for architectures which deviate from IEEE in not supporting
* signaling NaNs (so all NaNs are treated as quiet).
*/
-- PMM
- [Qemu-devel] [PATCH v2 00/10] target-xtensa: implement FP coprocessor option, Max Filippov, 2012/09/09
- [Qemu-devel] [PATCH v2 01/10] softfloat: make float_muladd_negate_* flags independent, Max Filippov, 2012/09/09
- [Qemu-devel] [PATCH v2 02/10] softfloat: add NO_SIGNALING_NANS, Max Filippov, 2012/09/09
- Re: [Qemu-devel] [PATCH v2 02/10] softfloat: add NO_SIGNALING_NANS,
Peter Maydell <=
- [Qemu-devel] [PATCH v2 03/10] target-xtensa: handle boolean option in overlays, Max Filippov, 2012/09/09
- [Qemu-devel] [PATCH v2 04/10] target-xtensa: specialize softfloat NaN rules, Max Filippov, 2012/09/09
- [Qemu-devel] [PATCH v2 05/10] target-xtensa: add FP registers, Max Filippov, 2012/09/09
- [Qemu-devel] [PATCH v2 06/10] target-xtensa: implement LSCX and LSCI groups, Max Filippov, 2012/09/09
- [Qemu-devel] [PATCH v2 07/10] target-xtensa: implement FP0 arithmetic, Max Filippov, 2012/09/09
- [Qemu-devel] [PATCH v2 08/10] target-xtensa: implement FP0 conversions, Max Filippov, 2012/09/09