summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels M?ller <nisse@lysator.liu.se>2015-02-21 19:59:36 +0100
committerNiels M?ller <nisse@lysator.liu.se>2015-02-21 19:59:36 +0100
commit3f90090965ad6bdf44d86ac31420dc621da79e6e (patch)
treeb9aa47b2d5ae072aa848d61455f4326b353f4264
parentf0947958d5f7c1f39adfe752acb42d6843eaff32 (diff)
downloadgmp-3f90090965ad6bdf44d86ac31420dc621da79e6e.tar.gz
Make mpn_divexact_1 public.
-rw-r--r--ChangeLog5
-rw-r--r--gmp-h.in3
-rw-r--r--gmp-impl.h5
3 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b6022999..8ef38810f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-21 Niels Möller <nisse@lysator.liu.se>
+
+ * gmp-h.in (mpn_divexact_1): New public declaration.
+ * gmp-impl.h: Moved from here.
+
2015-02-08 Niels Möller <nisse@lysator.liu.se>
* doc/gmp.texi (Low-level Functions): Document mpn_cnd_swap.
diff --git a/gmp-h.in b/gmp-h.in
index 4514fafc9..c6a336197 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -1475,6 +1475,9 @@ __GMP_DECLSPEC mp_limb_t mpn_addmul_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t);
__GMP_DECLSPEC int mpn_cmp (mp_srcptr, mp_srcptr, mp_size_t) __GMP_NOTHROW __GMP_ATTRIBUTE_PURE;
#endif
+#define mpn_divexact_1 __MPN(divexact_1)
+__GMP_DECLSPEC void mpn_divexact_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t);
+
#define mpn_divexact_by3(dst,src,size) \
mpn_divexact_by3c (dst, src, size, __GMP_CAST (mp_limb_t, 0))
diff --git a/gmp-impl.h b/gmp-impl.h
index 1717a4a93..350fe0392 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -3173,11 +3173,6 @@ __GMP_DECLSPEC mp_limb_t mpn_mod_34lsub1 (mp_srcptr, mp_size_t) __GMP_ATTRIBUTE_
#define BMOD_1_TO_MOD_1_THRESHOLD 10
#endif
-#ifndef mpn_divexact_1 /* if not done with cpuvec in a fat binary */
-#define mpn_divexact_1 __MPN(divexact_1)
-__GMP_DECLSPEC void mpn_divexact_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t);
-#endif
-
#define MPN_DIVREM_OR_DIVEXACT_1(rp, up, n, d) \
do { \
if (BELOW_THRESHOLD (n, DIVEXACT_1_THRESHOLD)) \