From 2848b105856e49d98f3c5026b6d8d790f9723c0c Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Thu, 16 May 2013 23:33:55 +0100 Subject: MIPS: soft-fp NaN representation corrections [BZ #15442] This adds support for the inverse interpretation of the quiet bit of IEEE 754 floating-point NaN data that some processors use. This includes in particular MIPS architecture processors; the payload used for the canonical qNaN encoding is updated accordingly so as not to interfere with the quiet bit. --- sysdeps/sparc/sparc32/soft-fp/sfp-machine.h | 1 + sysdeps/sparc/sparc64/soft-fp/sfp-machine.h | 1 + 2 files changed, 2 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/sparc/sparc32/soft-fp/sfp-machine.h b/sysdeps/sparc/sparc32/soft-fp/sfp-machine.h index 17c4cd1..35bd2cc 100644 --- a/sysdeps/sparc/sparc32/soft-fp/sfp-machine.h +++ b/sysdeps/sparc/sparc32/soft-fp/sfp-machine.h @@ -47,6 +47,7 @@ #define _FP_NANSIGN_Q 0 #define _FP_KEEPNANFRACP 1 +#define _FP_QNANNEGATEDP 0 /* If one NaN is signaling and the other is not, * we choose that one, otherwise we choose X. diff --git a/sysdeps/sparc/sparc64/soft-fp/sfp-machine.h b/sysdeps/sparc/sparc64/soft-fp/sfp-machine.h index f2d106e..562fdfc 100644 --- a/sysdeps/sparc/sparc64/soft-fp/sfp-machine.h +++ b/sysdeps/sparc/sparc64/soft-fp/sfp-machine.h @@ -60,6 +60,7 @@ do { \ #define _FP_NANSIGN_Q 0 #define _FP_KEEPNANFRACP 1 +#define _FP_QNANNEGATEDP 0 /* If one NaN is signaling and the other is not, * we choose that one, otherwise we choose Y. -- cgit v1.1