[Gmp-commit] /var/hg/gmp: Rename HGCD2_METHOD --> HGCD2_DIV1_METHOD.
mercurial at gmplib.org
mercurial at gmplib.org
Sat Sep 14 16:48:20 UTC 2019
details: /var/hg/gmp/rev/276e0c36db3d
changeset: 17900:276e0c36db3d
user: Niels M?ller <nisse at lysator.liu.se>
date: Sat Sep 14 18:47:40 2019 +0200
description:
Rename HGCD2_METHOD --> HGCD2_DIV1_METHOD.
diffstat:
ChangeLog | 6 ++++++
mpn/generic/hgcd2.c | 12 ++++++------
tune/hgcd2-1.c | 4 ++--
tune/hgcd2-2.c | 4 ++--
tune/hgcd2-3.c | 4 ++--
tune/tuneup.c | 2 +-
6 files changed, 19 insertions(+), 13 deletions(-)
diffs (117 lines):
diff -r 9e34fdf78075 -r 276e0c36db3d ChangeLog
--- a/ChangeLog Sat Sep 14 17:41:49 2019 +0200
+++ b/ChangeLog Sat Sep 14 18:47:40 2019 +0200
@@ -1,3 +1,9 @@
+2019-09-14 Niels Möller <nisse at lysator.liu.se>
+
+ * mpn/generic/hgcd2.c (HGCD2_DIV1_METHOD): Rename, and change
+ default to 3. Updated all usage.
+ (HGCD2_METHOD): ... the old name, deleted.
+
2019-09-14 Torbjörn Granlund <tg at gmplib.org>
* configure.ac: Remove obsolete path-triggered invocation of
diff -r 9e34fdf78075 -r 276e0c36db3d mpn/generic/hgcd2.c
--- a/mpn/generic/hgcd2.c Sat Sep 14 17:41:49 2019 +0200
+++ b/mpn/generic/hgcd2.c Sat Sep 14 18:47:40 2019 +0200
@@ -36,8 +36,8 @@
#include "gmp-impl.h"
#include "longlong.h"
-#ifndef HGCD2_METHOD
-#define HGCD2_METHOD 2
+#ifndef HGCD2_DIV1_METHOD
+#define HGCD2_DIV1_METHOD 3
#endif
#if GMP_NAIL_BITS != 0
@@ -49,7 +49,7 @@
static inline mp_double_limb_t
div1 (mp_limb_t n0, mp_limb_t d0);
-#if HGCD2_METHOD == 1
+#if HGCD2_DIV1_METHOD == 1
static inline mp_double_limb_t
div1 (mp_limb_t n0, mp_limb_t d0)
@@ -61,7 +61,7 @@
return res;
}
-#elif HGCD2_METHOD == 2
+#elif HGCD2_DIV1_METHOD == 2
static mp_double_limb_t
div1 (mp_limb_t n0, mp_limb_t d0)
@@ -97,7 +97,7 @@
return res;
}
-#elif HGCD2_METHOD == 3
+#elif HGCD2_DIV1_METHOD == 3
static inline mp_double_limb_t
div1 (mp_limb_t n0, mp_limb_t d0)
@@ -135,7 +135,7 @@
return res;
}
#else
-#error Unknown HGCD2_METHOD
+#error Unknown HGCD2_DIV1_METHOD
#endif
/* Two-limb division optimized for small quotients. */
diff -r 9e34fdf78075 -r 276e0c36db3d tune/hgcd2-1.c
--- a/tune/hgcd2-1.c Sat Sep 14 17:41:49 2019 +0200
+++ b/tune/hgcd2-1.c Sat Sep 14 18:47:40 2019 +0200
@@ -30,8 +30,8 @@
#include "gmp-impl.h"
-#undef HGCD2_METHOD
-#define HGCD2_METHOD 1
+#undef HGCD2_DIV1_METHOD
+#define HGCD2_DIV1_METHOD 1
#define __gmpn_hgcd2 mpn_hgcd2_1
/* Not used, but renamed to not get duplicate definitions */
#define __gmpn_hgcd_mul_matrix1_vector mpn_hgcd_mul_matrix1_vector_1
diff -r 9e34fdf78075 -r 276e0c36db3d tune/hgcd2-2.c
--- a/tune/hgcd2-2.c Sat Sep 14 17:41:49 2019 +0200
+++ b/tune/hgcd2-2.c Sat Sep 14 18:47:40 2019 +0200
@@ -30,8 +30,8 @@
#include "gmp-impl.h"
-#undef HGCD2_METHOD
-#define HGCD2_METHOD 2
+#undef HGCD2_DIV1_METHOD
+#define HGCD2_DIV1_METHOD 2
#define __gmpn_hgcd2 mpn_hgcd2_2
/* Not used, but renamed to not get duplicate definitions */
#define __gmpn_hgcd_mul_matrix1_vector mpn_hgcd_mul_matrix1_vector_2
diff -r 9e34fdf78075 -r 276e0c36db3d tune/hgcd2-3.c
--- a/tune/hgcd2-3.c Sat Sep 14 17:41:49 2019 +0200
+++ b/tune/hgcd2-3.c Sat Sep 14 18:47:40 2019 +0200
@@ -30,8 +30,8 @@
#include "gmp-impl.h"
-#undef HGCD2_METHOD
-#define HGCD2_METHOD 3
+#undef HGCD2_DIV1_METHOD
+#define HGCD2_DIV1_METHOD 3
#define __gmpn_hgcd2 mpn_hgcd2_3
/* Not used, but renamed to not get duplicate definitions */
#define __gmpn_hgcd_mul_matrix1_vector mpn_hgcd_mul_matrix1_vector_3
diff -r 9e34fdf78075 -r 276e0c36db3d tune/tuneup.c
--- a/tune/tuneup.c Sat Sep 14 17:41:49 2019 +0200
+++ b/tune/tuneup.c Sat Sep 14 18:47:40 2019 +0200
@@ -1961,7 +1961,7 @@
};
s.size = 1;
- one_method (3, f, "mpn_hgcd2", "HGCD2_METHOD", ¶m);
+ one_method (3, f, "mpn_hgcd2", "HGCD2_DIV1_METHOD", ¶m);
}
void
More information about the gmp-commit
mailing list