[Gmp-commit] /var/hg/gmp: mpn/generic/invertappr.c (mpn_invertappr): Remove TMP_

mercurial at gmplib.org mercurial at gmplib.org
Fri May 15 06:26:45 UTC 2015


details:   /var/hg/gmp/rev/5736ed67a208
changeset: 16629:5736ed67a208
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri May 15 08:26:10 2015 +0200
description:
mpn/generic/invertappr.c (mpn_invertappr): Remove TMP_

diffstat:

 mpn/generic/invertappr.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (28 lines):

diff -r ff2b31ba754f -r 5736ed67a208 mpn/generic/invertappr.c
--- a/mpn/generic/invertappr.c	Fri May 15 08:12:32 2015 +0200
+++ b/mpn/generic/invertappr.c	Fri May 15 08:26:10 2015 +0200
@@ -292,11 +292,6 @@
 mp_limb_t
 mpn_invertappr (mp_ptr ip, mp_srcptr dp, mp_size_t n, mp_ptr scratch)
 {
-  mp_limb_t res;
-  TMP_DECL;
-
-  TMP_MARK;
-
   ASSERT (n > 0);
   ASSERT (dp[n-1] & GMP_NUMB_HIGHBIT);
   ASSERT (! MPN_OVERLAP_P (ip, n, dp, n));
@@ -304,10 +299,7 @@
   ASSERT (! MPN_OVERLAP_P (dp, n, scratch, mpn_invertappr_itch(n)));
 
   if (BELOW_THRESHOLD (n, INV_NEWTON_THRESHOLD))
-    res = mpn_bc_invertappr (ip, dp, n, scratch);
+    return mpn_bc_invertappr (ip, dp, n, scratch);
   else
-    res = mpn_ni_invertappr (ip, dp, n, scratch);
-
-  TMP_FREE;
-  return res;
+    return mpn_ni_invertappr (ip, dp, n, scratch);
 }


More information about the gmp-commit mailing list