diff options
Diffstat (limited to 'arch/mips/math-emu/dp_sub.c')
-rw-r--r-- | arch/mips/math-emu/dp_sub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/math-emu/dp_sub.c b/arch/mips/math-emu/dp_sub.c index d502984df7cc..7a174029043a 100644 --- a/arch/mips/math-emu/dp_sub.c +++ b/arch/mips/math-emu/dp_sub.c | |||
@@ -91,7 +91,7 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y) | |||
91 | if (xs != ys) | 91 | if (xs != ys) |
92 | return x; | 92 | return x; |
93 | else | 93 | else |
94 | return ieee754dp_zero(ieee754_csr.rm == IEEE754_RD); | 94 | return ieee754dp_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): |
@@ -171,7 +171,7 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y) | |||
171 | xs = ys; | 171 | xs = ys; |
172 | } | 172 | } |
173 | if (xm == 0) { | 173 | if (xm == 0) { |
174 | if (ieee754_csr.rm == IEEE754_RD) | 174 | if (ieee754_csr.rm == FPU_CSR_RD) |
175 | return ieee754dp_zero(1); /* round negative inf. => sign = -1 */ | 175 | return ieee754dp_zero(1); /* round negative inf. => sign = -1 */ |
176 | else | 176 | else |
177 | return ieee754dp_zero(0); /* other round modes => sign = 1 */ | 177 | return ieee754dp_zero(0); /* other round modes => sign = 1 */ |