Commit 56b03d5f by Richard Stallman

(__floatdisf): Use DFtype for intermediate values.

From-SVN: r4421
parent 6a25991d
...@@ -1018,7 +1018,10 @@ SFtype ...@@ -1018,7 +1018,10 @@ SFtype
__floatdisf (u) __floatdisf (u)
DItype u; DItype u;
{ {
SFtype f; /* Do the calculation in DFmode
so that we don't lose any of the precision of the high word
while multiplying it. */
DFtype f;
SItype negate = 0; SItype negate = 0;
if (u < 0) if (u < 0)
...@@ -1029,7 +1032,7 @@ __floatdisf (u) ...@@ -1029,7 +1032,7 @@ __floatdisf (u)
f *= HIGH_HALFWORD_COEFF; f *= HIGH_HALFWORD_COEFF;
f += (USItype) (u & (HIGH_WORD_COEFF - 1)); f += (USItype) (u & (HIGH_WORD_COEFF - 1));
return (negate ? -f : f); return (SFtype) (negate ? -f : f);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment