diff options
Diffstat (limited to 'arch/mips/math-emu/dp_fsp.c')
-rw-r--r-- | arch/mips/math-emu/dp_fsp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/math-emu/dp_fsp.c b/arch/mips/math-emu/dp_fsp.c index cacd9f328690..7ddb506153e1 100644 --- a/arch/mips/math-emu/dp_fsp.c +++ b/arch/mips/math-emu/dp_fsp.c | |||
@@ -44,8 +44,8 @@ union ieee754dp ieee754dp_fsp(union ieee754sp x) | |||
44 | return ieee754dp_nanxcpt(builddp(xs, | 44 | return ieee754dp_nanxcpt(builddp(xs, |
45 | DP_EMAX + 1 + DP_EBIAS, | 45 | DP_EMAX + 1 + DP_EBIAS, |
46 | ((u64) xm | 46 | ((u64) xm |
47 | << (DP_MBITS - | 47 | << (DP_FBITS - |
48 | SP_MBITS))), "fsp", | 48 | SP_FBITS))), "fsp", |
49 | x); | 49 | x); |
50 | case IEEE754_CLASS_INF: | 50 | case IEEE754_CLASS_INF: |
51 | return ieee754dp_inf(xs); | 51 | return ieee754dp_inf(xs); |
@@ -53,7 +53,7 @@ union ieee754dp ieee754dp_fsp(union ieee754sp x) | |||
53 | return ieee754dp_zero(xs); | 53 | return ieee754dp_zero(xs); |
54 | case IEEE754_CLASS_DNORM: | 54 | case IEEE754_CLASS_DNORM: |
55 | /* normalize */ | 55 | /* normalize */ |
56 | while ((xm >> SP_MBITS) == 0) { | 56 | while ((xm >> SP_FBITS) == 0) { |
57 | xm <<= 1; | 57 | xm <<= 1; |
58 | xe--; | 58 | xe--; |
59 | } | 59 | } |
@@ -69,5 +69,5 @@ union ieee754dp ieee754dp_fsp(union ieee754sp x) | |||
69 | xm &= ~SP_HIDDEN_BIT; | 69 | xm &= ~SP_HIDDEN_BIT; |
70 | 70 | ||
71 | return builddp(xs, xe + DP_EBIAS, | 71 | return builddp(xs, xe + DP_EBIAS, |
72 | (u64) xm << (DP_MBITS - SP_MBITS)); | 72 | (u64) xm << (DP_FBITS - SP_FBITS)); |
73 | } | 73 | } |