aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/dp_div.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/math-emu/dp_div.c')
-rw-r--r--arch/mips/math-emu/dp_div.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/math-emu/dp_div.c b/arch/mips/math-emu/dp_div.c
index 3b568b718d52..13ecffa9c25e 100644
--- a/arch/mips/math-emu/dp_div.c
+++ b/arch/mips/math-emu/dp_div.c
@@ -129,7 +129,7 @@ union ieee754dp ieee754dp_div(union ieee754dp x, union ieee754dp y)
129 int re = xe - ye; 129 int re = xe - ye;
130 u64 bm; 130 u64 bm;
131 131
132 for (bm = DP_MBIT(DP_MBITS + 2); bm; bm >>= 1) { 132 for (bm = DP_MBIT(DP_FBITS + 2); bm; bm >>= 1) {
133 if (xm >= ym) { 133 if (xm >= ym) {
134 xm -= ym; 134 xm -= ym;
135 rm |= bm; 135 rm |= bm;
@@ -146,7 +146,7 @@ union ieee754dp ieee754dp_div(union ieee754dp x, union ieee754dp y)
146 146
147 /* normalise rm to rounding precision ? 147 /* normalise rm to rounding precision ?
148 */ 148 */
149 while ((rm >> (DP_MBITS + 3)) == 0) { 149 while ((rm >> (DP_FBITS + 3)) == 0) {
150 rm <<= 1; 150 rm <<= 1;
151 re--; 151 re--;
152 } 152 }