commit faf2cebb48ec44a14b025bbe858b66efb78577fa
parent 068fc72f804ef972a35f06b06b049a84db1ce6a7
Author: Mattias Andrée <maandree@kth.se>
Date: Mon, 2 May 2016 00:02:01 +0200
Buffer was too small
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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;