[Gmp-commit] /var/hg/gmp: Make mpn_divexact_1 public.
mercurial at gmplib.org
mercurial at gmplib.org
Sat Feb 21 19:00:09 UTC 2015
details: /var/hg/gmp/rev/2d027c920892
changeset: 16556:2d027c920892
user: Niels M?ller <nisse at lysator.liu.se>
date: Sat Feb 21 19:59:36 2015 +0100
description:
Make mpn_divexact_1 public.
diffstat:
ChangeLog | 5 +++++
gmp-h.in | 3 +++
gmp-impl.h | 5 -----
3 files changed, 8 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 0f8d54477a96 -r 2d027c920892 ChangeLog
--- a/ChangeLog Sun Feb 08 08:18:00 2015 +0100
+++ b/ChangeLog Sat Feb 21 19:59:36 2015 +0100
@@ -1,3 +1,8 @@
+2015-02-21 Niels Möller <nisse at 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 at lysator.liu.se>
* doc/gmp.texi (Low-level Functions): Document mpn_cnd_swap.
diff -r 0f8d54477a96 -r 2d027c920892 gmp-h.in
--- a/gmp-h.in Sun Feb 08 08:18:00 2015 +0100
+++ b/gmp-h.in Sat Feb 21 19:59:36 2015 +0100
@@ -1475,6 +1475,9 @@
__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 -r 0f8d54477a96 -r 2d027c920892 gmp-impl.h
--- a/gmp-impl.h Sun Feb 08 08:18:00 2015 +0100
+++ b/gmp-impl.h Sat Feb 21 19:59:36 2015 +0100
@@ -3173,11 +3173,6 @@
#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)) \
More information about the gmp-commit
mailing list