aboutsummaryrefslogtreecommitdiffstats
path: root/bench/benchmark.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-12 23:07:37 +0100
committerMattias Andrée <maandree@kth.se>2016-03-12 23:07:37 +0100
commita035fc10768bf48d096a33d0748e679e5a3e2540 (patch)
treec31f6b4433c3a4713f47f32a295380e40c34f7a3 /bench/benchmark.c
parent64 bits (severely) outshines 16 bits and 8 bits in performance: do some cleanup (diff)
downloadlibzahl-a035fc10768bf48d096a33d0748e679e5a3e2540.tar.gz
libzahl-a035fc10768bf48d096a33d0748e679e5a3e2540.tar.bz2
libzahl-a035fc10768bf48d096a33d0748e679e5a3e2540.tar.xz
Add possibility to compare against libtommath
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bench/benchmark.c')
-rw-r--r--bench/benchmark.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bench/benchmark.c b/bench/benchmark.c
index 7d062a6..7b987e2 100644
--- a/bench/benchmark.c
+++ b/bench/benchmark.c
@@ -1,7 +1,11 @@
#include <time.h>
#include <stdio.h>
-#include "../zahl.h"
+#ifdef BENCHMARK_LIB
+# include BENCHMARK_LIB
+#else
+# include "../zahl.h"
+#endif
#ifndef CLOCK_MONOTONIC_RAW