[Gmp-commit] /var/hg/gmp: igi static

mercurial at gmplib.org mercurial at gmplib.org
Sun May 13 07:47:48 UTC 2018


details:   /var/hg/gmp/rev/f1f2b927d1c7
changeset: 17621:f1f2b927d1c7
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sun May 13 09:47:33 2018 +0200
description:
igi static

diffstat:

 gmp-impl.h                    |  16 ----------------
 mpn/generic/dcpi1_bdiv_q.c    |   6 +++---
 mpn/generic/dcpi1_divappr_q.c |   2 +-
 mpn/generic/matrix22_mul.c    |   2 +-
 mpn/generic/mu_div_qr.c       |   3 ++-
 mpn/generic/mu_divappr_q.c    |   7 +++++--
 6 files changed, 12 insertions(+), 24 deletions(-)

diffs (152 lines):

diff -r 5fe1ac7e745c -r f1f2b927d1c7 gmp-impl.h
--- a/gmp-impl.h	Sun May 06 19:10:34 2018 +0200
+++ b/gmp-impl.h	Sun May 13 09:47:33 2018 +0200
@@ -1534,15 +1534,11 @@
 
 #define   mpn_dcpi1_divappr_q __MPN(dcpi1_divappr_q)
 __GMP_DECLSPEC mp_limb_t mpn_dcpi1_divappr_q (mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, gmp_pi1_t *);
-#define   mpn_dcpi1_divappr_q_n __MPN(dcpi1_divappr_q_n)
-__GMP_DECLSPEC mp_limb_t mpn_dcpi1_divappr_q_n (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, gmp_pi1_t *, mp_ptr);
 
 #define   mpn_mu_div_qr __MPN(mu_div_qr)
 __GMP_DECLSPEC mp_limb_t mpn_mu_div_qr (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
 #define   mpn_mu_div_qr_itch __MPN(mu_div_qr_itch)
 __GMP_DECLSPEC mp_size_t mpn_mu_div_qr_itch (mp_size_t, mp_size_t, int) ATTRIBUTE_CONST;
-#define   mpn_mu_div_qr_choose_in __MPN(mu_div_qr_choose_in)
-__GMP_DECLSPEC mp_size_t mpn_mu_div_qr_choose_in (mp_size_t, mp_size_t, int);
 
 #define   mpn_preinv_mu_div_qr __MPN(preinv_mu_div_qr)
 __GMP_DECLSPEC mp_limb_t mpn_preinv_mu_div_qr (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
@@ -1553,11 +1549,6 @@
 __GMP_DECLSPEC mp_limb_t mpn_mu_divappr_q (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
 #define   mpn_mu_divappr_q_itch __MPN(mu_divappr_q_itch)
 __GMP_DECLSPEC mp_size_t mpn_mu_divappr_q_itch (mp_size_t, mp_size_t, int) ATTRIBUTE_CONST;
-#define   mpn_mu_divappr_q_choose_in __MPN(mu_divappr_q_choose_in)
-__GMP_DECLSPEC mp_size_t mpn_mu_divappr_q_choose_in (mp_size_t, mp_size_t, int);
-
-#define   mpn_preinv_mu_divappr_q __MPN(preinv_mu_divappr_q)
-__GMP_DECLSPEC mp_limb_t mpn_preinv_mu_divappr_q (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
 
 #define   mpn_mu_div_q __MPN(mu_div_q)
 __GMP_DECLSPEC mp_limb_t mpn_mu_div_q (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
@@ -1607,11 +1598,6 @@
 #define   mpn_dcpi1_bdiv_q __MPN(dcpi1_bdiv_q)
 __GMP_DECLSPEC void      mpn_dcpi1_bdiv_q (mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t);
 
-#define   mpn_dcpi1_bdiv_q_n __MPN(dcpi1_bdiv_q_n)
-__GMP_DECLSPEC void      mpn_dcpi1_bdiv_q_n (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr);
-#define   mpn_dcpi1_bdiv_q_n_itch __MPN(dcpi1_bdiv_q_n_itch)
-__GMP_DECLSPEC mp_size_t mpn_dcpi1_bdiv_q_n_itch (mp_size_t) ATTRIBUTE_CONST;
-
 #define   mpn_mu_bdiv_qr __MPN(mu_bdiv_qr)
 __GMP_DECLSPEC mp_limb_t mpn_mu_bdiv_qr (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
 #define   mpn_mu_bdiv_qr_itch __MPN(mu_bdiv_qr_itch)
@@ -4184,8 +4170,6 @@
 /* Matrix multiplication */
 #define   mpn_matrix22_mul __MPN(matrix22_mul)
 __GMP_DECLSPEC void      mpn_matrix22_mul (mp_ptr, mp_ptr, mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_srcptr, mp_srcptr, mp_srcptr, mp_size_t, mp_ptr);
-#define   mpn_matrix22_mul_strassen __MPN(matrix22_mul_strassen)
-__GMP_DECLSPEC void      mpn_matrix22_mul_strassen (mp_ptr, mp_ptr, mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_srcptr, mp_srcptr, mp_srcptr, mp_size_t, mp_ptr);
 #define   mpn_matrix22_mul_itch __MPN(matrix22_mul_itch)
 __GMP_DECLSPEC mp_size_t mpn_matrix22_mul_itch (mp_size_t, mp_size_t) ATTRIBUTE_CONST;
 
diff -r 5fe1ac7e745c -r f1f2b927d1c7 mpn/generic/dcpi1_bdiv_q.c
--- a/mpn/generic/dcpi1_bdiv_q.c	Sun May 06 19:10:34 2018 +0200
+++ b/mpn/generic/dcpi1_bdiv_q.c	Sun May 13 09:47:33 2018 +0200
@@ -38,10 +38,10 @@
 #include "gmp-impl.h"
 
 
-mp_size_t
+static mp_size_t
 mpn_dcpi1_bdiv_q_n_itch (mp_size_t n)
 {
-  /* NOTE: Depends on mullo_n interface */
+  /* NOTE: Depends on mullo_n and mpn_dcpi1_bdiv_qr_n interface */
   return n;
 }
 
@@ -51,7 +51,7 @@
    D = {dp,n}
 */
 
-void
+static void
 mpn_dcpi1_bdiv_q_n (mp_ptr qp,
 		    mp_ptr np, mp_srcptr dp, mp_size_t n,
 		    mp_limb_t dinv, mp_ptr tp)
diff -r 5fe1ac7e745c -r f1f2b927d1c7 mpn/generic/dcpi1_divappr_q.c
--- a/mpn/generic/dcpi1_divappr_q.c	Sun May 06 19:10:34 2018 +0200
+++ b/mpn/generic/dcpi1_divappr_q.c	Sun May 13 09:47:33 2018 +0200
@@ -39,7 +39,7 @@
 #include "longlong.h"
 
 
-mp_limb_t
+static mp_limb_t
 mpn_dcpi1_divappr_q_n (mp_ptr qp, mp_ptr np, mp_srcptr dp, mp_size_t n,
 		       gmp_pi1_t *dinv, mp_ptr tp)
 {
diff -r 5fe1ac7e745c -r f1f2b927d1c7 mpn/generic/matrix22_mul.c
--- a/mpn/generic/matrix22_mul.c	Sun May 06 19:10:34 2018 +0200
+++ b/mpn/generic/matrix22_mul.c	Sun May 13 09:47:33 2018 +0200
@@ -126,7 +126,7 @@
  * Resulting elements are of size up to rn + mn + 1.
  *
  * Temporary storage: 3 rn + 3 mn + 5. */
-void
+static void
 mpn_matrix22_mul_strassen (mp_ptr r0, mp_ptr r1, mp_ptr r2, mp_ptr r3, mp_size_t rn,
 			   mp_srcptr m0, mp_srcptr m1, mp_srcptr m2, mp_srcptr m3, mp_size_t mn,
 			   mp_ptr tp)
diff -r 5fe1ac7e745c -r f1f2b927d1c7 mpn/generic/mu_div_qr.c
--- a/mpn/generic/mu_div_qr.c	Sun May 06 19:10:34 2018 +0200
+++ b/mpn/generic/mu_div_qr.c	Sun May 13 09:47:33 2018 +0200
@@ -90,6 +90,7 @@
 
 
 static mp_limb_t mpn_mu_div_qr2 (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
+static mp_size_t mpn_mu_div_qr_choose_in (mp_size_t, mp_size_t, int);
 
 
 mp_limb_t
@@ -362,7 +363,7 @@
    (c) qn < dn/3:       in = qn
    In all cases we have in <= dn.
  */
-mp_size_t
+static mp_size_t
 mpn_mu_div_qr_choose_in (mp_size_t qn, mp_size_t dn, int k)
 {
   mp_size_t in;
diff -r 5fe1ac7e745c -r f1f2b927d1c7 mpn/generic/mu_divappr_q.c
--- a/mpn/generic/mu_divappr_q.c	Sun May 06 19:10:34 2018 +0200
+++ b/mpn/generic/mu_divappr_q.c	Sun May 13 09:47:33 2018 +0200
@@ -70,6 +70,9 @@
 #include <stdlib.h>		/* for NULL */
 #include "gmp-impl.h"
 
+static mp_limb_t mpn_preinv_mu_divappr_q (mp_ptr, mp_srcptr, mp_size_t,
+			 mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr);
+static mp_size_t mpn_mu_divappr_q_choose_in (mp_size_t, mp_size_t, int);
 
 mp_limb_t
 mpn_mu_divappr_q (mp_ptr qp,
@@ -155,7 +158,7 @@
   return qh;
 }
 
-mp_limb_t
+static mp_limb_t
 mpn_preinv_mu_divappr_q (mp_ptr qp,
 			 mp_srcptr np,
 			 mp_size_t nn,
@@ -311,7 +314,7 @@
    (c) qn < dn/3:       in = qn
    In all cases we have in <= dn.
  */
-mp_size_t
+static mp_size_t
 mpn_mu_divappr_q_choose_in (mp_size_t qn, mp_size_t dn, int k)
 {
   mp_size_t in;


More information about the gmp-commit mailing list