fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
authorTorbjorn Granlund <tege@matematik.su.se>
Sat, 19 Sep 1998 21:44:10 +0000 (23:44 +0200)
committerJeff Law <law@gcc.gnu.org>
Sat, 19 Sep 1998 21:44:10 +0000 (15:44 -0600)
        * fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
        (_fpadd_parts): Get sign right for 0.

From-SVN: r22485

gcc/ChangeLog
gcc/config/fp-bit.c

index 7f24eb9bcaf483ebadc627acc6262fd624f3ea80..bd11923d955758a867776579205a5839bfb4a7b9 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * ginclude/varargs.h: Add support for C4x target.
index f4a1e2ad8fd46c9ea161fa2e85cce27cf0ba1fe9..2acc3852dd7af0112726f1709ee17302bacb1f55 100644 (file)
@@ -460,7 +460,6 @@ pack_d ( fp_number_type *  src)
   else if (fraction == 0)
     {
       exp = 0;
-      sign = 0;
     }
   else
     {
@@ -735,7 +734,7 @@ _fpadd_parts (fp_number_type * a,
        {
          tfraction = a_fraction - b_fraction;
        }
-      if (tfraction > 0)
+      if (tfraction >= 0)
        {
          tmp->sign = 0;
          tmp->normal_exp = a_normal_exp;