diff options
Diffstat (limited to 'arch/mips/math-emu/sp_add.c')
-rw-r--r-- | arch/mips/math-emu/sp_add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/math-emu/sp_add.c b/arch/mips/math-emu/sp_add.c index e67f11af4acf..d107bce38bfd 100644 --- a/arch/mips/math-emu/sp_add.c +++ b/arch/mips/math-emu/sp_add.c | |||
@@ -148,7 +148,7 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y) | |||
148 | xe = xe; | 148 | xe = xe; |
149 | xs = xs; | 149 | xs = xs; |
150 | 150 | ||
151 | if (xm >> (SP_MBITS + 1 + 3)) { /* carry out */ | 151 | if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ |
152 | SPXSRSX1(); | 152 | SPXSRSX1(); |
153 | } | 153 | } |
154 | } else { | 154 | } else { |
@@ -166,7 +166,7 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y) | |||
166 | IEEE754_RD); | 166 | IEEE754_RD); |
167 | 167 | ||
168 | /* normalize in extended single precision */ | 168 | /* normalize in extended single precision */ |
169 | while ((xm >> (SP_MBITS + 3)) == 0) { | 169 | while ((xm >> (SP_FBITS + 3)) == 0) { |
170 | xm <<= 1; | 170 | xm <<= 1; |
171 | xe--; | 171 | xe--; |
172 | } | 172 | } |