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

From-SVN: r57965
This commit is contained in:
Alan Modra 2002-10-08 23:50:56 +00:00 committed by Alan Modra
parent aa53f832ac
commit cef1c1bac1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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>
PR doc/7484

View File

@ -1091,7 +1091,10 @@ __floatdisf (DWtype u)
&& u < ((DWtype) 1 << DF_SIZE)))
{
if ((UDWtype) u & (REP_BIT - 1))
u |= REP_BIT;
{
u &= ~ (REP_BIT - 1);
u |= REP_BIT;
}
}
}
f = (Wtype) (u >> WORD_SIZE);