[Gmp-commit] /var/hg/gmp: 6 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sat Dec 28 15:35:59 UTC 2013
details: /var/hg/gmp/rev/8a31f294ea1c
changeset: 16115:8a31f294ea1c
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Dec 28 16:28:43 2013 +0100
description:
Fix comment layout.
details: /var/hg/gmp/rev/dbfd5423e048
changeset: 16116:dbfd5423e048
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Dec 28 16:30:45 2013 +0100
description:
Ignore recently removed files.
details: /var/hg/gmp/rev/e3859ccce211
changeset: 16117:e3859ccce211
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Dec 28 16:33:21 2013 +0100
description:
Fix an ASSERT.
details: /var/hg/gmp/rev/9d1ae534d355
changeset: 16118:9d1ae534d355
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Dec 28 16:33:45 2013 +0100
description:
Add a copyright year.
details: /var/hg/gmp/rev/04e441875ce1
changeset: 16119:04e441875ce1
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Dec 28 16:35:45 2013 +0100
description:
Adjust toom testing counts.
details: /var/hg/gmp/rev/a2a4b5aae3e7
changeset: 16120:a2a4b5aae3e7
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Dec 28 16:35:56 2013 +0100
description:
ChangeLog
diffstat:
.hgignore | 6 ++++++
ChangeLog | 2 ++
mpn/generic/sec_div.c | 2 +-
mpn/generic/sec_powm.c | 4 ++--
mpn/x86_64/core2/mul_basecase.asm | 6 +++---
tests/mpn/t-toom6-sqr.c | 2 ++
tests/mpn/t-toom8-sqr.c | 2 ++
tests/mpn/toom-sqr-shared.h | 2 +-
8 files changed, 19 insertions(+), 7 deletions(-)
diffs (109 lines):
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 .hgignore
--- a/.hgignore Sat Dec 28 16:19:39 2013 +0100
+++ b/.hgignore Sat Dec 28 16:35:56 2013 +0100
@@ -18,6 +18,12 @@
^stamp-h1
Makefile
+^doc/mdate-sh
+^doc/texinfo\.tex
+^install-sh
+^missing
+^ylwrap
+
^gmp-mparam\.h
^gen-bases
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 ChangeLog
--- a/ChangeLog Sat Dec 28 16:19:39 2013 +0100
+++ b/ChangeLog Sat Dec 28 16:35:56 2013 +0100
@@ -1,5 +1,7 @@
2013-12-28 Torbjorn Granlund <tege at gmplib.org>
+ * mpn/generic/sec_powm.c: Fix an ASSERT.
+
* gmp-h.in (mpn_sec_mul, mpn_sec_mul_itch): New declarations.
* gmp-h.in (mpn_sec_sqr, mpn_sec_sqr_itch): Likewise.
* mpn/generic/sec_mul.c: New file.
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 mpn/generic/sec_div.c
--- a/mpn/generic/sec_div.c Sat Dec 28 16:19:39 2013 +0100
+++ b/mpn/generic/sec_div.c Sat Dec 28 16:35:56 2013 +0100
@@ -8,7 +8,7 @@
SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST
GUARANTEED THAT THEY WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
-Copyright 2011, 2012 Free Software Foundation, Inc.
+Copyright 2011-2013 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 mpn/generic/sec_powm.c
--- a/mpn/generic/sec_powm.c Sat Dec 28 16:19:39 2013 +0100
+++ b/mpn/generic/sec_powm.c Sat Dec 28 16:35:56 2013 +0100
@@ -7,7 +7,7 @@
SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST
GUARANTEED THAT THEY WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
-Copyright 2007-2009, 2011, 2012 Free Software Foundation, Inc.
+Copyright 2007-2009, 2011, 2012, 2013 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -251,7 +251,7 @@
long i;
int cnd;
- ASSERT (en > 1 || (en == 1 && ep[0] > 0));
+ ASSERT (en > 0 && ep[en - 1] != 0);
ASSERT (n >= 1 && ((mp[0] & 1) != 0));
/* The code works for bn = 0, but the defined scratch space is 2 limbs
greater than we supply, when converting 1 to redc form . */
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 mpn/x86_64/core2/mul_basecase.asm
--- a/mpn/x86_64/core2/mul_basecase.asm Sat Dec 28 16:19:39 2013 +0100
+++ b/mpn/x86_64/core2/mul_basecase.asm Sat Dec 28 16:35:56 2013 +0100
@@ -54,10 +54,10 @@
C | / | / | / | /
C \|/ |/_ \|/ |/_ \|/ |/_ \|/ |/_
C _____ _____ _____ _____
-C / \ / \ / \ / \
+C / \ / \ / \ / \
C \|/ | \|/ | \|/ | \|/ |
-C am_2(0m4) | am_2(1m4) | am_2(2m4) | am_2(3m4) |
-C \ /|\ \ /|\ \ /|\ \ /|\
+C am_2(0m4) | am_2(1m4) | am_2(2m4) | am_2(3m4) |
+C \ /|\ \ /|\ \ /|\ \ /|\
C \_____/ \_____/ \_____/ \_____/
C TODO
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 tests/mpn/t-toom6-sqr.c
--- a/tests/mpn/t-toom6-sqr.c Sat Dec 28 16:19:39 2013 +0100
+++ b/tests/mpn/t-toom6-sqr.c Sat Dec 28 16:35:56 2013 +0100
@@ -3,4 +3,6 @@
#define MIN_AN MAX(SQR_TOOM3_THRESHOLD,MAX(SQR_TOOM4_THRESHOLD,MAX(SQR_TOOM6_THRESHOLD,MPN_TOOM6_SQR_MINSIZE)))
#define MAX_AN SQR_TOOM8_THRESHOLD
+#define COUNT 250
+
#include "toom-sqr-shared.h"
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 tests/mpn/t-toom8-sqr.c
--- a/tests/mpn/t-toom8-sqr.c Sat Dec 28 16:19:39 2013 +0100
+++ b/tests/mpn/t-toom8-sqr.c Sat Dec 28 16:35:56 2013 +0100
@@ -3,4 +3,6 @@
#define MIN_AN MAX(SQR_TOOM3_THRESHOLD,MAX(SQR_TOOM4_THRESHOLD,MAX(SQR_TOOM6_THRESHOLD,MAX(SQR_TOOM8_THRESHOLD,MPN_TOOM8_SQR_MINSIZE))))
#define MAX_AN SQR_FFT_THRESHOLD
+#define COUNT 250
+
#include "toom-sqr-shared.h"
diff -r f2bd5436d3f4 -r a2a4b5aae3e7 tests/mpn/toom-sqr-shared.h
--- a/tests/mpn/toom-sqr-shared.h Sat Dec 28 16:19:39 2013 +0100
+++ b/tests/mpn/toom-sqr-shared.h Sat Dec 28 16:35:56 2013 +0100
@@ -29,7 +29,7 @@
* MIN_AN, MAX_AN and then include this file. */
#ifndef COUNT
-#define COUNT 500
+#define COUNT 2000
#endif
int
More information about the gmp-commit
mailing list