patch-2.4.19 linux-2.4.19/arch/mips/math-emu/ieee754.h

Next file: linux-2.4.19/arch/mips/math-emu/ieee754d.c
Previous file: linux-2.4.19/arch/mips/math-emu/ieee754.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/mips/math-emu/ieee754.h linux-2.4.19/arch/mips/math-emu/ieee754.h
@@ -325,7 +325,6 @@
 */
 struct ieee754_csr {
 	unsigned pad:13;
-	unsigned noq:1;		/* set 1 for no quiet NaN's */
 	unsigned nod:1;		/* set 1 for no denormalised numbers */
 	unsigned cx:5;		/* exceptions this operation */
 	unsigned mx:5;		/* exception enable  mask */
@@ -453,11 +452,11 @@
 
 /* indefinite integer value 
 */
-#define ieee754si_indef()	INT_MIN
-#ifdef LONG_LONG_MIN
-#define ieee754di_indef()	LONG_LONG_MIN
+#define ieee754si_indef()	INT_MAX
+#ifdef LONG_LONG_MAX
+#define ieee754di_indef()	LONG_LONG_MAX
 #else
-#define ieee754di_indef()	(-9223372036854775807LL-1)
+#define ieee754di_indef()	((long long)(~0ULL>>1))
 #endif
 
 /* IEEE exception context, passed to handler */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)