fix timing & logs/*.png generation
diff --git a/demo/timing.c b/demo/timing.c
index 1b72a00..78fce1e 100644
--- a/demo/timing.c
+++ b/demo/timing.c
@@ -290,7 +290,7 @@ int main(void)
}
printf("Exponentiating\t%4d-bit => %9" PRIu64 "/sec, %9" PRIu64 " cycles\n",
mp_count_bits(&a), CLK_PER_SEC / tt, tt);
- FPRINTF((n < 4) ? logd : (n < 9) ? logc : (n < 16) ? logb : log,
+ FPRINTF((n < 3) ? logd : (n < 9) ? logc : (n < 16) ? logb : log,
"%6d %9" PRIu64 "\n", mp_count_bits(&a), tt);
}
}
diff --git a/logs/Makefile b/logs/Makefile
new file mode 100644
index 0000000..c2ebaf7
--- /dev/null
+++ b/logs/Makefile
@@ -0,0 +1,2 @@
+all:
+ gnuplot graphs.dem
diff --git a/logs/graphs.dem b/logs/graphs.dem
index dfaf613..538e5c0 100644
--- a/logs/graphs.dem
+++ b/logs/graphs.dem
@@ -1,5 +1,4 @@
set terminal png
-set size 1.75
set ylabel "Cycles per Operation"
set xlabel "Operand size (bits)"