Commit 04ac3c66 by Jim Wilson

(unpack_d): Check fraction not sign to distinquish QNaN.

From-SVN: r14386
parent ecfcbd6d
......@@ -546,13 +546,13 @@ unpack_d (FLO_union_type * src, fp_number_type * dst)
else
{
/* Non zero fraction, means nan */
if (sign)
if (fraction & QUIET_NAN)
{
dst->class = CLASS_SNAN;
dst->class = CLASS_QNAN;
}
else
{
dst->class = CLASS_QNAN;
dst->class = CLASS_SNAN;
}
/* Keep the fraction part as the nan number */
dst->fraction.ll = fraction;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment