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:
Ed Maste 2024-06-11 21:34:02 -04:00
parent 92927b8bcf
commit e77ad954bb
2 changed files with 2 additions and 6 deletions

View file

@ -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) {

View file

@ -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) {