aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2015-04-03 18:24:35 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-04-07 19:08:58 -0400
commitb844bc781b7bb4fa49c0a26f998d9ba10ecc3742 (patch)
treecd1fcdd842a267d0173ab0caca84ac0136867ef0
parent241e9c465f5ff424b1b6de0d8100962a9bddc3f3 (diff)
MIPS: math-emu: Fix oversize lines in comparisons
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9676/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/math-emu/dp_cmp.c3
-rw-r--r--arch/mips/math-emu/sp_cmp.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/math-emu/dp_cmp.c b/arch/mips/math-emu/dp_cmp.c
index 30f95f6e9ac4..f8fbb23bd0fb 100644
--- a/arch/mips/math-emu/dp_cmp.c
+++ b/arch/mips/math-emu/dp_cmp.c
@@ -36,7 +36,8 @@ int ieee754dp_cmp(union ieee754dp x, union ieee754dp y, int cmp, int sig)
36 ieee754_clearcx(); /* Even clear inexact flag here */ 36 ieee754_clearcx(); /* Even clear inexact flag here */
37 37
38 if (ieee754dp_isnan(x) || ieee754dp_isnan(y)) { 38 if (ieee754dp_isnan(x) || ieee754dp_isnan(y)) {
39 if (sig || xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN) 39 if (sig ||
40 xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN)
40 ieee754_setcx(IEEE754_INVALID_OPERATION); 41 ieee754_setcx(IEEE754_INVALID_OPERATION);
41 if (cmp & IEEE754_CUN) 42 if (cmp & IEEE754_CUN)
42 return 1; 43 return 1;
diff --git a/arch/mips/math-emu/sp_cmp.c b/arch/mips/math-emu/sp_cmp.c
index addbccb2f556..5caf088af0d7 100644
--- a/arch/mips/math-emu/sp_cmp.c
+++ b/arch/mips/math-emu/sp_cmp.c
@@ -36,7 +36,8 @@ int ieee754sp_cmp(union ieee754sp x, union ieee754sp y, int cmp, int sig)
36 ieee754_clearcx(); /* Even clear inexact flag here */ 36 ieee754_clearcx(); /* Even clear inexact flag here */
37 37
38 if (ieee754sp_isnan(x) || ieee754sp_isnan(y)) { 38 if (ieee754sp_isnan(x) || ieee754sp_isnan(y)) {
39 if (sig || xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN) 39 if (sig ||
40 xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN)
40 ieee754_setcx(IEEE754_INVALID_OPERATION); 41 ieee754_setcx(IEEE754_INVALID_OPERATION);
41 if (cmp & IEEE754_CUN) 42 if (cmp & IEEE754_CUN)
42 return 1; 43 return 1;