(fpadd_parts): Adding infinities with opposite signs yields a NaN.

From-SVN: r8667
This commit is contained in:
Jim Wilson 1994-12-19 12:48:30 -08:00
parent 667a4593fc
commit c211b99198

View File

@ -485,6 +485,9 @@ _fpadd_parts (fp_number_type * a,
}
if (isinf (a))
{
/* Adding infinities with opposite signs yields a NaN. */
if (isinf (b) && a->sign != b->sign)
return nan ();
return a;
}
if (isinf (b))