Commit b567319f by Torbjorn Granlund Committed by Jeff Law

fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.

        * fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
        (_fpadd_parts): Get sign right for 0.

From-SVN: r22485
parent 1553cb7a
1998-09-19 Torbjorn Granlund <tege@matematik.su.se>
* fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
(_fpadd_parts): Get sign right for 0.
1998-09-19 Michael Hayes <m.hayes@elec.canterbury.ac.nz> 1998-09-19 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* ginclude/varargs.h: Add support for C4x target. * ginclude/varargs.h: Add support for C4x target.
......
...@@ -460,7 +460,6 @@ pack_d ( fp_number_type * src) ...@@ -460,7 +460,6 @@ pack_d ( fp_number_type * src)
else if (fraction == 0) else if (fraction == 0)
{ {
exp = 0; exp = 0;
sign = 0;
} }
else else
{ {
...@@ -735,7 +734,7 @@ _fpadd_parts (fp_number_type * a, ...@@ -735,7 +734,7 @@ _fpadd_parts (fp_number_type * a,
{ {
tfraction = a_fraction - b_fraction; tfraction = a_fraction - b_fraction;
} }
if (tfraction > 0) if (tfraction >= 0)
{ {
tmp->sign = 0; tmp->sign = 0;
tmp->normal_exp = a_normal_exp; tmp->normal_exp = a_normal_exp;
......
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