* libgcc2.c (__floatdisf): Properly cure double rounding.
From-SVN: r57965
This commit is contained in:
parent
aa53f832ac
commit
cef1c1bac1
|
@ -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>
|
2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||||
|
|
||||||
PR doc/7484
|
PR doc/7484
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue