From 73b0d33bafadb839962d5d6fbd5c1a8a18a8c56c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 28 Apr 2016 21:52:47 +0200 Subject: Some documentation and cleanup for benchmark stuff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- bench/benchmark.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bench/benchmark.c') diff --git a/bench/benchmark.c b/bench/benchmark.c index 485e2c4..29bdb55 100644 --- a/bench/benchmark.c +++ b/bench/benchmark.c @@ -79,13 +79,13 @@ main(int argc, char *argv[]) BENCHMARK(zbset(c, a, 76, -1), 1); BENCHMARK(zbset(a, a, 76, -1), 1); BENCHMARK(zbtest(a, 76), 1); -#ifndef HEBIMATH +#ifndef HEBIMATH /* These take too long in hebimath because of inefficient division. */ BENCHMARK(zgcd(c, a, b), 0); #endif BENCHMARK(zmul(c, a, b), 0); BENCHMARK(zmul(c, a, a), 0); BENCHMARK(zsqr(c, a), 0); -#ifndef HEBIMATH +#ifndef HEBIMATH /* Ditto. */ zsets(d, "1484298084218938358480511181388394862858002249"); BENCHMARK(zmodmul(c, a, b, d), 0); BENCHMARK(zmodmul(c, a, a, d), 0); @@ -94,8 +94,8 @@ main(int argc, char *argv[]) BENCHMARK(zmodmul(c, a, a, tiny), 0); BENCHMARK(zmodsqr(c, a, tiny), 0); zsets(d, "12"); - BENCHMARK(zpow(c, a, d), 0); /* Memory corruption when using hebimath */ - BENCHMARK(zpowu(c, a, 12), 0); /* Memory corruption when using hebimath */ + BENCHMARK(zpow(c, a, d), 0); /* Memory corruption when using hebimath. */ + BENCHMARK(zpowu(c, a, 12), 0); /* Memory corruption when using hebimath. */ BENCHMARK(zmodpow(c, a, d, b), 0); BENCHMARK(zmodpowu(c, a, 12, b), 0); #endif @@ -111,7 +111,7 @@ main(int argc, char *argv[]) BENCHMARK(zdiv(c, a, b), 1); BENCHMARK(zmod(c, a, b), 1); BENCHMARK(zdivmod(c, d, a, b), 1); -#ifndef HEBIMATH +#ifndef HEBIMATH /* Ditto. */ BENCHMARK(zdiv(c, a, tiny), 0); BENCHMARK(zmod(c, a, tiny), 0); BENCHMARK(zdivmod(c, d, a, tiny), 0); -- cgit v1.2.3-70-g09d2