commit faf2cebb48ec44a14b025bbe858b66efb78577fa
Author: Mattias Andrée <[email protected]>
AuthorDate: Mon May 2 00:02:01 2016 +0200
Commit: Mattias Andrée <[email protected]>
CommitDate: Mon May 2 00:02:01 2016 +0200
Buffer was too small
Signed-off-by: Mattias Andrée <[email protected]>
diff --git a/STATUS b/STATUS
index c4ea8f7..7f75c95 100644
--- a/STATUS
+++ b/STATUS
@@ -59,7 +59,7 @@ zmodpow ................. slowest (zmul, zsqr. zmod)
zmodpowu ................ slowest (zmul, zsqr, zmod)
zsets ................... 13 % of gmp
zstr_length(a, 10) ...... gmp is faster [always] (zdiv, zsqr)
-zstr(a, b, n) ........... 8 % of gmp, 59 % of hebimath [gmp, tomsfastmath, and
libtommath explode at ~3500]
+zstr(a, b, n) ........... 8 % of gmp, 59 % of hebimath
zrand(default uniform) .. 51 % of gmp
zptest .................. slowest (zrand, zmodpow, zsqr, zmod)
zsave ................... fastest [until ~600, then tomsfastmath; libtommath
is suspicious]
diff --git a/bench/benchmark-func.c b/bench/benchmark-func.c
index 25f18b8..15af698 100644
--- a/bench/benchmark-func.c
+++ b/bench/benchmark-func.c
@@ -33,7 +33,7 @@ struct function {
#define M_MAX 200
-static char buf[1000];
+static char buf[2000];
static z_t temp, temp2;
static unsigned long long int measurements[M_MAX];
diff --git a/bench/benchmark.c b/bench/benchmark.c
index 1404d93..7c525dc 100644
--- a/bench/benchmark.c
+++ b/bench/benchmark.c
@@ -17,7 +17,7 @@
int
main(int argc, char *argv[])
{
- char buf[1000];
+ char buf[2000];
z_t a, b, c, d, tiny;
jmp_buf jmp;
size_t i;