patch-2.4.20 linux-2.4.20/arch/mips/math-emu/sp_cmp.c
Next file: linux-2.4.20/arch/mips/math-emu/sp_div.c
Previous file: linux-2.4.20/arch/mips/math-emu/sp_add.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Thu Nov 28 15:53:10 2002
- Orig file:
linux-2.4.19/arch/mips/math-emu/sp_cmp.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/mips/math-emu/sp_cmp.c linux-2.4.20/arch/mips/math-emu/sp_cmp.c
@@ -27,7 +27,7 @@
#include "ieee754sp.h"
-int ieee754sp_cmp(ieee754sp x, ieee754sp y, int cmp)
+int ieee754sp_cmp(ieee754sp x, ieee754sp y, int cmp, int sig)
{
COMPXSP;
COMPYSP;
@@ -39,12 +39,12 @@
CLEARCX; /* Even clear inexact flag here */
if (ieee754sp_isnan(x) || ieee754sp_isnan(y)) {
- if (xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN)
+ if (sig || xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN)
SETCX(IEEE754_INVALID_OPERATION);
if (cmp & IEEE754_CUN)
return 1;
if (cmp & (IEEE754_CLT | IEEE754_CGT)) {
- if (SETCX(IEEE754_INVALID_OPERATION))
+ if (sig && SETCX(IEEE754_INVALID_OPERATION))
return ieee754si_xcpt(0, "fcmpf", x);
}
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)