[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Tue May 7 11:28:43 CEST 2013
details: /var/hg/gmp/rev/c81131f80095
changeset: 15797:c81131f80095
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue May 07 11:28:09 2013 +0200
description:
Cast constant udiv_rnnd_preinv arguments.
details: /var/hg/gmp/rev/bbef7430c7f2
changeset: 15798:bbef7430c7f2
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue May 07 11:28:38 2013 +0200
description:
ChangeLog
diffstat:
ChangeLog | 12 ++++++++++++
mpn/generic/divrem_2.c | 2 +-
mpn/generic/mod_1_1.c | 5 ++---
mpn/generic/mod_1_2.c | 4 ++--
mpn/generic/mod_1_3.c | 6 +++---
mpn/generic/mod_1_4.c | 8 ++++----
6 files changed, 24 insertions(+), 13 deletions(-)
diffs (113 lines):
diff -r 8b4a25e647ca -r bbef7430c7f2 ChangeLog
--- a/ChangeLog Mon May 06 01:42:19 2013 +0200
+++ b/ChangeLog Tue May 07 11:28:38 2013 +0200
@@ -1,3 +1,15 @@
+2013-05-07 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/generic/mod_1_1.c: Cast constant udiv_rnnd_preinv arguments.
+ * mpn/generic/mod_1_2.c: Likewise.
+ * mpn/generic/mod_1_3.c: Likewise.
+ * mpn/generic/mod_1_4.c: Likewise.
+ * mpn/generic/divrem_2.c: Likewise.
+
+2013-05-06 Torbjorn Granlund <tege at gmplib.org>
+
+ * config.guess (power*): Handle all ppc970 variants.
+
2013-05-03 David S. Miller <davem at davemloft.net>
* tune/common.c (speed_mpn_addlsh1_n, speed_mpn_sublsh1_n,
diff -r 8b4a25e647ca -r bbef7430c7f2 mpn/generic/divrem_2.c
--- a/mpn/generic/divrem_2.c Mon May 06 01:42:19 2013 +0200
+++ b/mpn/generic/divrem_2.c Tue May 07 11:28:38 2013 +0200
@@ -98,7 +98,7 @@
for (i = qxn - 1; i >= 0; i--)
{
mp_limb_t q;
- udiv_qr_3by2 (q, r1, r0, r1, r0, 0, d1, d0, di.inv32);
+ udiv_qr_3by2 (q, r1, r0, r1, r0, CNST_LIMB(0), d1, d0, di.inv32);
qp[i] = q;
}
}
diff -r 8b4a25e647ca -r bbef7430c7f2 mpn/generic/mod_1_1.c
--- a/mpn/generic/mod_1_1.c Mon May 06 01:42:19 2013 +0200
+++ b/mpn/generic/mod_1_1.c Tue May 07 11:28:38 2013 +0200
@@ -171,7 +171,7 @@
* B2modb = - b * bi;
* ASSERT (B2modb <= b); // NB: equality iff b = B/2
*/
- udiv_rnnd_preinv (B2modb, B1modb, 0, b, bi);
+ udiv_rnnd_preinv (B2modb, B1modb, CNST_LIMB(0), b, bi);
cps[3] = B2modb >> cnt;
}
@@ -305,8 +305,7 @@
r1 = (r1 << cnt) | (r0 >> (GMP_LIMB_BITS - cnt));
r0 <<= cnt;
- /* NOTE: Might get r1 == b here, but udiv_rnnd_preinv allows
- that. */
+ /* NOTE: Might get r1 == b here, but udiv_rnnd_preinv allows that. */
}
else
{
diff -r 8b4a25e647ca -r bbef7430c7f2 mpn/generic/mod_1_2.c
--- a/mpn/generic/mod_1_2.c Mon May 06 01:42:19 2013 +0200
+++ b/mpn/generic/mod_1_2.c Tue May 07 11:28:38 2013 +0200
@@ -51,10 +51,10 @@
ASSERT (B1modb <= b); /* NB: not fully reduced mod b */
cps[2] = B1modb >> cnt;
- udiv_rnnd_preinv (B2modb, B1modb, 0, b, bi);
+ udiv_rnnd_preinv (B2modb, B1modb, CNST_LIMB(0), b, bi);
cps[3] = B2modb >> cnt;
- udiv_rnnd_preinv (B3modb, B2modb, 0, b, bi);
+ udiv_rnnd_preinv (B3modb, B2modb, CNST_LIMB(0), b, bi);
cps[4] = B3modb >> cnt;
#if WANT_ASSERT
diff -r 8b4a25e647ca -r bbef7430c7f2 mpn/generic/mod_1_3.c
--- a/mpn/generic/mod_1_3.c Mon May 06 01:42:19 2013 +0200
+++ b/mpn/generic/mod_1_3.c Tue May 07 11:28:38 2013 +0200
@@ -51,13 +51,13 @@
ASSERT (B1modb <= b); /* NB: not fully reduced mod b */
cps[2] = B1modb >> cnt;
- udiv_rnnd_preinv (B2modb, B1modb, 0, b, bi);
+ udiv_rnnd_preinv (B2modb, B1modb, CNST_LIMB(0), b, bi);
cps[3] = B2modb >> cnt;
- udiv_rnnd_preinv (B3modb, B2modb, 0, b, bi);
+ udiv_rnnd_preinv (B3modb, B2modb, CNST_LIMB(0), b, bi);
cps[4] = B3modb >> cnt;
- udiv_rnnd_preinv (B4modb, B3modb, 0, b, bi);
+ udiv_rnnd_preinv (B4modb, B3modb, CNST_LIMB(0), b, bi);
cps[5] = B4modb >> cnt;
#if WANT_ASSERT
diff -r 8b4a25e647ca -r bbef7430c7f2 mpn/generic/mod_1_4.c
--- a/mpn/generic/mod_1_4.c Mon May 06 01:42:19 2013 +0200
+++ b/mpn/generic/mod_1_4.c Tue May 07 11:28:38 2013 +0200
@@ -51,16 +51,16 @@
ASSERT (B1modb <= b); /* NB: not fully reduced mod b */
cps[2] = B1modb >> cnt;
- udiv_rnnd_preinv (B2modb, B1modb, 0, b, bi);
+ udiv_rnnd_preinv (B2modb, B1modb, CNST_LIMB(0), b, bi);
cps[3] = B2modb >> cnt;
- udiv_rnnd_preinv (B3modb, B2modb, 0, b, bi);
+ udiv_rnnd_preinv (B3modb, B2modb, CNST_LIMB(0), b, bi);
cps[4] = B3modb >> cnt;
- udiv_rnnd_preinv (B4modb, B3modb, 0, b, bi);
+ udiv_rnnd_preinv (B4modb, B3modb, CNST_LIMB(0), b, bi);
cps[5] = B4modb >> cnt;
- udiv_rnnd_preinv (B5modb, B4modb, 0, b, bi);
+ udiv_rnnd_preinv (B5modb, B4modb, CNST_LIMB(0), b, bi);
cps[6] = B5modb >> cnt;
#if WANT_ASSERT
More information about the gmp-commit
mailing list