aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/sp_flong.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/math-emu/sp_flong.c')
-rw-r--r--arch/mips/math-emu/sp_flong.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/math-emu/sp_flong.c b/arch/mips/math-emu/sp_flong.c
index ea065ae14766..65c7e7e67b60 100644
--- a/arch/mips/math-emu/sp_flong.c
+++ b/arch/mips/math-emu/sp_flong.c
@@ -50,17 +50,17 @@ union ieee754sp ieee754sp_flong(s64 x)
50 } else { 50 } else {
51 xm = x; 51 xm = x;
52 } 52 }
53 xe = SP_MBITS + 3; 53 xe = SP_FBITS + 3;
54 54
55 if (xm >> (SP_MBITS + 1 + 3)) { 55 if (xm >> (SP_FBITS + 1 + 3)) {
56 /* shunt out overflow bits 56 /* shunt out overflow bits
57 */ 57 */
58 while (xm >> (SP_MBITS + 1 + 3)) { 58 while (xm >> (SP_FBITS + 1 + 3)) {
59 SPXSRSX1(); 59 SPXSRSX1();
60 } 60 }
61 } else { 61 } else {
62 /* normalize in grs extended single precision */ 62 /* normalize in grs extended single precision */
63 while ((xm >> (SP_MBITS + 3)) == 0) { 63 while ((xm >> (SP_FBITS + 3)) == 0) {
64 xm <<= 1; 64 xm <<= 1;
65 xe--; 65 xe--;
66 } 66 }