aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/sp_sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/math-emu/sp_sub.c')
-rw-r--r--arch/mips/math-emu/sp_sub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/math-emu/sp_sub.c b/arch/mips/math-emu/sp_sub.c
index e813f4fee784..8592e49032b8 100644
--- a/arch/mips/math-emu/sp_sub.c
+++ b/arch/mips/math-emu/sp_sub.c
@@ -91,7 +91,7 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y)
91 if (xs != ys) 91 if (xs != ys)
92 return x; 92 return x;
93 else 93 else
94 return ieee754sp_zero(ieee754_csr.rm == IEEE754_RD); 94 return ieee754sp_zero(ieee754_csr.rm == FPU_CSR_RD);
95 95
96 case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_ZERO): 96 case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_ZERO):
97 case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_ZERO): 97 case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_ZERO):
@@ -165,7 +165,7 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y)
165 xs = ys; 165 xs = ys;
166 } 166 }
167 if (xm == 0) { 167 if (xm == 0) {
168 if (ieee754_csr.rm == IEEE754_RD) 168 if (ieee754_csr.rm == FPU_CSR_RD)
169 return ieee754sp_zero(1); /* round negative inf. => sign = -1 */ 169 return ieee754sp_zero(1); /* round negative inf. => sign = -1 */
170 else 170 else
171 return ieee754sp_zero(0); /* other round modes => sign = 1 */ 171 return ieee754sp_zero(0); /* other round modes => sign = 1 */