[Gmp-commit] /home/hgfiles/gmp: Add code to be enabled after debugging.
mercurial at gmplib.org
mercurial at gmplib.org
Sat Dec 26 11:33:06 CET 2009
details: /home/hgfiles/gmp/rev/167449896618
changeset: 13223:167449896618
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Dec 26 11:33:00 2009 +0100
description:
Add code to be enabled after debugging.
diffstat:
mpn/generic/mullo_n.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 3d7678257a01 -r 167449896618 mpn/generic/mullo_n.c
--- a/mpn/generic/mullo_n.c Sat Dec 26 10:54:22 2009 +0100
+++ b/mpn/generic/mullo_n.c Sat Dec 26 11:33:00 2009 +0100
@@ -155,10 +155,16 @@
n1 = n * 11 / (size_t) 36; /* n1 ~= n*(1-.694...) */
else if (BELOW_THRESHOLD (n, MUL_TOOM44_THRESHOLD*40/(40-9)))
n1 = n * 9 / (size_t) 40; /* n1 ~= n*(1-.775...) */
+#if 1
else
n1 = n * 7 / (size_t) 39; /* n1 ~= n*(1-.821...) */
+#else /* Enable this branch after debugging high-degree-Toom-related crashes. */
+ else if (BELOW_THRESHOLD (n, MUL_TOOM8H_THRESHOLD*10/9))
+ n1 = n * 7 / (size_t) 39; /* n1 ~= n*(1-.821...) */
/* n1 = n * 4 / (size_t) 31; // n1 ~= n*(1-.871...) [TOOM66] */
- /* n1 = n / (size_t) 10; // n1 ~= n*(1-.899...) [TOOM88] */
+ else
+ n1 = n / (size_t) 10; /* n1 ~= n*(1-.899...) [TOOM88] */
+#endif
n2 = n - n1;
/* Split as x = x1 2^(n2 GMP_NUMB_BITS) + x0,
More information about the gmp-commit
mailing list