diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-04-28 21:52:47 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-04-28 21:52:47 +0200 |
| commit | 73b0d33bafadb839962d5d6fbd5c1a8a18a8c56c (patch) | |
| tree | a263e3e79ae58b13925fa57845b7d7b991b25dbd /bench/benchmark.c | |
| parent | Fix warnings (diff) | |
| download | libzahl-73b0d33bafadb839962d5d6fbd5c1a8a18a8c56c.tar.gz libzahl-73b0d33bafadb839962d5d6fbd5c1a8a18a8c56c.tar.bz2 libzahl-73b0d33bafadb839962d5d6fbd5c1a8a18a8c56c.tar.xz | |
Some documentation and cleanup for benchmark stuff
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bench/benchmark.c')
| -rw-r--r-- | bench/benchmark.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |
