patch-2.4.19 linux-2.4.19/arch/mips/math-emu/dp_fsp.c

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

diff -urN linux-2.4.18/arch/mips/math-emu/dp_fsp.c linux-2.4.19/arch/mips/math-emu/dp_fsp.c
@@ -31,13 +31,17 @@
 {
 	COMPXSP;
 
+	EXPLODEXSP;
+
 	CLEARCX;
 
-	EXPLODEXSP;
+	FLUSHXSP;
 
 	switch (xc) {
-	case IEEE754_CLASS_QNAN:
 	case IEEE754_CLASS_SNAN:
+		SETCX(IEEE754_INVALID_OPERATION);
+		return ieee754dp_nanxcpt(ieee754dp_indef(), "fsp");
+	case IEEE754_CLASS_QNAN:
 		return ieee754dp_nanxcpt(builddp(xs,
 						 DP_EMAX + 1 + DP_EBIAS,
 						 ((unsigned long long) xm

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