From faf2cebb48ec44a14b025bbe858b66efb78577fa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 2 May 2016 00:02:01 +0200 Subject: Buffer was too small MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- STATUS | 2 +- bench/benchmark-func.c | 2 +- bench/benchmark.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- cgit v1.2.3-70-g09d2