MIPS: math-emu: Replace DP_MBITS with DP_FBITS and SP_MBITS with SP_FBITS.
[firefly-linux-kernel-4.4.55.git] / arch / mips / math-emu / sp_mul.c
index 844b3bde0ab665e71a772bc150bd34cdfa4762f5..28f608f25499f1dbd0040e8c4ad342e385b72916 100644 (file)
@@ -114,8 +114,8 @@ union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y)
                unsigned rm;
 
                /* shunt to top of word */
-               xm <<= 32 - (SP_MBITS + 1);
-               ym <<= 32 - (SP_MBITS + 1);
+               xm <<= 32 - (SP_FBITS + 1);
+               ym <<= 32 - (SP_FBITS + 1);
 
                /* multiply 32bits xm,ym to give high 32bits rm with stickness
                 */
@@ -156,12 +156,12 @@ union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y)
                 * sticky shift down to normal rounding precision
                 */
                if ((int) rm < 0) {
-                       rm = (rm >> (32 - (SP_MBITS + 1 + 3))) |
-                           ((rm << (SP_MBITS + 1 + 3)) != 0);
+                       rm = (rm >> (32 - (SP_FBITS + 1 + 3))) |
+                           ((rm << (SP_FBITS + 1 + 3)) != 0);
                        re++;
                } else {
-                       rm = (rm >> (32 - (SP_MBITS + 1 + 3 + 1))) |
-                           ((rm << (SP_MBITS + 1 + 3 + 1)) != 0);
+                       rm = (rm >> (32 - (SP_FBITS + 1 + 3 + 1))) |
+                           ((rm << (SP_FBITS + 1 + 3 + 1)) != 0);
                }
                assert(rm & (SP_HIDDEN_BIT << 3));