[Gmp-commit] /home/hgfiles/gmp-4.3: (mpn_sqr): New name for mpn_sqr_n.
mercurial at gmplib.org
mercurial at gmplib.org
Sun Dec 27 20:37:26 CET 2009
details: /home/hgfiles/gmp-4.3/rev/0f129e8b4643
changeset: 12537:0f129e8b4643
user: Torbjorn Granlund <tege at gmplib.org>
date: Sun Dec 27 20:37:21 2009 +0100
description:
(mpn_sqr): New name for mpn_sqr_n.
diffstat:
ChangeLog | 3 +++
gmp-h.in | 3 +++
gmp-impl.h | 3 +--
mpn/generic/mul_n.c | 2 +-
tune/speed.c | 2 +-
5 files changed, 9 insertions(+), 4 deletions(-)
diffs (63 lines):
diff -r 83874bdae55e -r 0f129e8b4643 ChangeLog
--- a/ChangeLog Sun Dec 27 02:51:59 2009 +0100
+++ b/ChangeLog Sun Dec 27 20:37:21 2009 +0100
@@ -2,6 +2,9 @@
* Version 4.3.2 released.
+ * (mpn_sqr): New name for mpn_sqr_n. Make minimal changes,
+ leaving internal references still to old name.
+
* gmp-impl.h: Update mpn_mul_fft declaration.
2009-12-21 Torbjorn Granlund <tege at gmplib.org>
diff -r 83874bdae55e -r 0f129e8b4643 gmp-h.in
--- a/gmp-h.in Sun Dec 27 02:51:59 2009 +0100
+++ b/gmp-h.in Sun Dec 27 20:37:21 2009 +0100
@@ -1550,6 +1550,9 @@
#define mpn_mul_n __MPN(mul_n)
__GMP_DECLSPEC void mpn_mul_n __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t));
+#define mpn_sqr __MPN(sqr)
+__GMP_DECLSPEC void mpn_sqr __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t));
+
#define mpn_neg_n __MPN(neg_n)
#if __GMP_INLINE_PROTOTYPES || defined (__GMP_FORCE_mpn_neg_n)
__GMP_DECLSPEC mp_limb_t mpn_neg_n __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t));
diff -r 83874bdae55e -r 0f129e8b4643 gmp-impl.h
--- a/gmp-impl.h Sun Dec 27 02:51:59 2009 +0100
+++ b/gmp-impl.h Sun Dec 27 20:37:21 2009 +0100
@@ -864,8 +864,7 @@
#define mpn_mullow_basecase __MPN(mullow_basecase)
__GMP_DECLSPEC void mpn_mullow_basecase __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t));
-#define mpn_sqr_n __MPN(sqr_n)
-__GMP_DECLSPEC void mpn_sqr_n __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t));
+#define mpn_sqr_n __MPN(sqr) /* compatibility */
#ifndef mpn_sqr_basecase /* if not done with cpuvec in a fat binary */
#define mpn_sqr_basecase __MPN(sqr_basecase)
diff -r 83874bdae55e -r 0f129e8b4643 mpn/generic/mul_n.c
--- a/mpn/generic/mul_n.c Sun Dec 27 02:51:59 2009 +0100
+++ b/mpn/generic/mul_n.c Sun Dec 27 20:37:21 2009 +0100
@@ -751,7 +751,7 @@
}
void
-mpn_sqr_n (mp_ptr p, mp_srcptr a, mp_size_t n)
+mpn_sqr (mp_ptr p, mp_srcptr a, mp_size_t n)
{
ASSERT (n >= 1);
ASSERT (! MPN_OVERLAP_P (p, 2 * n, a, n));
diff -r 83874bdae55e -r 0f129e8b4643 tune/speed.c
--- a/tune/speed.c Sun Dec 27 02:51:59 2009 +0100
+++ b/tune/speed.c Sun Dec 27 20:37:21 2009 +0100
@@ -293,7 +293,7 @@
#endif
{ "mpn_mul_n", speed_mpn_mul_n },
- { "mpn_sqr_n", speed_mpn_sqr_n },
+ { "mpn_sqr", speed_mpn_sqr_n },
{ "mpn_kara_mul_n", speed_mpn_kara_mul_n },
{ "mpn_kara_sqr_n", speed_mpn_kara_sqr_n },
More information about the gmp-commit
mailing list