Commit cef1c1ba by Alan Modra Committed by Alan Modra

* libgcc2.c (__floatdisf): Properly cure double rounding.

From-SVN: r57965
parent aa53f832
2002-10-09 Alan Modra <amodra@bigpond.net.au>
* libgcc2.c (__floatdisf): Properly cure double rounding.
2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net> 2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR doc/7484 PR doc/7484
......
...@@ -1091,7 +1091,10 @@ __floatdisf (DWtype u) ...@@ -1091,7 +1091,10 @@ __floatdisf (DWtype u)
&& u < ((DWtype) 1 << DF_SIZE))) && u < ((DWtype) 1 << DF_SIZE)))
{ {
if ((UDWtype) u & (REP_BIT - 1)) if ((UDWtype) u & (REP_BIT - 1))
u |= REP_BIT; {
u &= ~ (REP_BIT - 1);
u |= REP_BIT;
}
} }
} }
f = (Wtype) (u >> WORD_SIZE); f = (Wtype) (u >> WORD_SIZE);
......
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