summaryrefslogtreecommitdiffstats
path: root/libtommath/demo
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-09-26 16:31:55 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-09-26 16:31:55 (GMT)
commit36537913f69228c5a11335a42637feba36c96677 (patch)
treee0c3d30912f2b67d620d935f3dead47ac4f3533d /libtommath/demo
parentd2b645df1ab7b43093f7553808c64fedaa3b3a49 (diff)
downloadtcl-36537913f69228c5a11335a42637feba36c96677.zip
tcl-36537913f69228c5a11335a42637feba36c96677.tar.gz
tcl-36537913f69228c5a11335a42637feba36c96677.tar.bz2
Import of libtommath 0.36
Diffstat (limited to 'libtommath/demo')
-rw-r--r--libtommath/demo/demo.c8
-rw-r--r--libtommath/demo/timing.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/libtommath/demo/demo.c b/libtommath/demo/demo.c
index 0a6115a..0555366 100644
--- a/libtommath/demo/demo.c
+++ b/libtommath/demo/demo.c
@@ -389,8 +389,8 @@ printf("compare no compare!\n"); exit(EXIT_FAILURE); }
sub_d_n = 0;
/* force KARA and TOOM to enable despite cutoffs */
- KARATSUBA_SQR_CUTOFF = KARATSUBA_MUL_CUTOFF = 110;
- TOOM_SQR_CUTOFF = TOOM_MUL_CUTOFF = 150;
+ KARATSUBA_SQR_CUTOFF = KARATSUBA_MUL_CUTOFF = 8;
+ TOOM_SQR_CUTOFF = TOOM_MUL_CUTOFF = 16;
for (;;) {
/* randomly clear and re-init one variable, this has the affect of triming the alloc space */
@@ -734,3 +734,7 @@ printf("compare no compare!\n"); exit(EXIT_FAILURE); }
}
return 0;
}
+
+/* $Source: /root/tcl/repos-to-convert/tcl/libtommath/demo/demo.c,v $ */
+/* $Revision: 1.1.1.3 $ */
+/* $Date: 2005/09/26 16:32:16 $ */
diff --git a/libtommath/demo/timing.c b/libtommath/demo/timing.c
index bb3be52..cf0f39c 100644
--- a/libtommath/demo/timing.c
+++ b/libtommath/demo/timing.c
@@ -313,3 +313,7 @@ int main(void)
return 0;
}
+
+/* $Source: /root/tcl/repos-to-convert/tcl/libtommath/demo/timing.c,v $ */
+/* $Revision: 1.1.1.3 $ */
+/* $Date: 2005/09/26 16:32:16 $ */