mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 14:14:56 +00:00
Revert "libm: fma: correct zero sign with small inputs"
This change introduced a test failure, so revert until that can be
addressed.
This reverts commit 888796ade2
.
PR: 277783
Reported by: rlibby
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
92927b8bcf
commit
e77ad954bb
|
@ -267,9 +267,7 @@ fma(double x, double y, double z)
|
|||
*/
|
||||
fesetround(oround);
|
||||
volatile double vzs = zs; /* XXX gcc CSE bug workaround */
|
||||
xs = ldexp(xy.lo, spread);
|
||||
xy.hi += vzs;
|
||||
return (xy.hi == 0 ? xs : xy.hi + xs);
|
||||
return (xy.hi + vzs + ldexp(xy.lo, spread));
|
||||
}
|
||||
|
||||
if (oround != FE_TONEAREST) {
|
||||
|
|
|
@ -248,9 +248,7 @@ fmal(long double x, long double y, long double z)
|
|||
*/
|
||||
fesetround(oround);
|
||||
volatile long double vzs = zs; /* XXX gcc CSE bug workaround */
|
||||
xs = ldexpl(xy.lo, spread);
|
||||
xy.hi += vzs;
|
||||
return (xy.hi == 0 ? xs : xy.hi + xs);
|
||||
return (xy.hi + vzs + ldexpl(xy.lo, spread));
|
||||
}
|
||||
|
||||
if (oround != FE_TONEAREST) {
|
||||
|
|
Loading…
Reference in a new issue