fix timing & logs/*.png generation

This commit is contained in:
Steffen Jaeckel 2018-02-02 10:54:54 +01:00
parent 82376cb19b
commit bf61c0be58
3 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}

2
logs/Makefile Normal file
View File

@ -0,0 +1,2 @@
all:
gnuplot graphs.dem

View File

@ -1,5 +1,4 @@
set terminal png
set size 1.75
set ylabel "Cycles per Operation"
set xlabel "Operand size (bits)"