(fpadd_parts): Adding infinities with opposite signs yields a NaN.
From-SVN: r8667
This commit is contained in:
parent
667a4593fc
commit
c211b99198
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user