[Gmp-commit] /var/hg/gmp: (mpn_lshift_com optimization 2): Make it well-defin...

mercurial at gmplib.org mercurial at gmplib.org
Mon Nov 21 14:31:05 UTC 2016


details:   /var/hg/gmp/rev/2349e1d2f62e
changeset: 17121:2349e1d2f62e
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Nov 21 15:30:37 2016 +0100
description:
(mpn_lshift_com optimization 2): Make it well-defined also for 32-bit systems.

diffstat:

 acinclude.m4 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6a2a9d2f639c -r 2349e1d2f62e acinclude.m4
--- a/acinclude.m4	Sun Nov 20 22:09:04 2016 +0100
+++ b/acinclude.m4	Mon Nov 21 15:30:37 2016 +0100
@@ -743,7 +743,7 @@
     a[i] = ~0L;
   r = malloc (10000 * sizeof (unsigned long));
   r2 = r;
-  for (i = 0; i < 528; i += 22)
+  for (i = 0; i < 528; i += 23)
     {
       lshift_com (r2, a,
 		  i / (8 * sizeof (unsigned long)) + 1,


More information about the gmp-commit mailing list