]> git.pld-linux.org Git - packages/gmp.git/commitdiff
- orphaned, outdated
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Apr 2006 23:41:17 +0000 (23:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mpf_sub.c.diff -> 1.2

mpf_sub.c.diff [deleted file]

diff --git a/mpf_sub.c.diff b/mpf_sub.c.diff
deleted file mode 100644 (file)
index 289fa63..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
---- sub.c.~1.11.~      2002-05-16 09:20:45.000000000 +1000
-+++ sub.c      2004-05-13 17:59:04.000000000 +1000
-@@ -1,6 +1,6 @@
- /* mpf_sub -- Subtract two floats.
--Copyright 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
-+Copyright 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free Software
- Foundation, Inc.
- This file is part of the GNU MP Library.
-@@ -105,26 +105,29 @@
-                 if (usize == 0)
-                   {
-+                      /* u cancels high limbs of v, result is rest of v */
-+                    negate ^= 1;
-+                    cancellation:
-+                      /* strip high zeros before truncating to prec */
-+                      while (vsize != 0 && vp[vsize - 1] == 0)
-+                        {
-+                          vsize--;
-+                          exp--;
-+                        }
-                     if (vsize > prec)
-                       {
-                         vp += vsize - prec;
-                         vsize = prec;
-                       }
--                    rsize = vsize;
--                    tp = (mp_ptr) vp;
--                    negate ^= 1;
--                    goto normalize;
-+                      MPN_COPY_INCR (rp, vp, vsize);
-+                      rsize = vsize;
-+                      goto done;
-                   }
-                 if (vsize == 0)
-                   {
--                    if (usize > prec)
--                      {
--                        up += usize - prec;
--                        usize = prec;
--                      }
--                    rsize = usize;
--                    tp = (mp_ptr) up;
--                    goto normalize;
-+                      vp = up;
-+                      vsize = usize;
-+                      goto cancellation;
-                   }
-               }
-             while (up[usize - 1] == vp[vsize - 1]);
-@@ -401,6 +404,8 @@
-  done:
-   r->_mp_size = negate ? -rsize : rsize;
-+  if (rsize == 0)
-+    exp = 0;
-   r->_mp_exp = exp;
-   TMP_FREE (marker);
- }
This page took 0.031873 seconds and 4 git commands to generate.