Fixed a couple printf usage errors.

This commit is contained in:
Lewis Van Winkle
2016-01-24 20:43:49 -06:00
parent 00f8febe43
commit 6e0e01f67b
2 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ void bench(const char *expr, te_fun1 func) {
/*Million floats per second input.*/ /*Million floats per second input.*/
printf(" %.5g", d); printf(" %.5g", d);
if (nelapsed) if (nelapsed)
printf("\t%5dms\t%5lumfps\n", nelapsed, loops * loops / nelapsed / 1000); printf("\t%5dms\t%5dmfps\n", nelapsed, loops * loops / nelapsed / 1000);
else else
printf("\tinf\n"); printf("\tinf\n");
@@ -79,7 +79,7 @@ void bench(const char *expr, te_fun1 func) {
/*Million floats per second input.*/ /*Million floats per second input.*/
printf(" %.5g", d); printf(" %.5g", d);
if (eelapsed) if (eelapsed)
printf("\t%5dms\t%5lumfps\n", eelapsed, loops * loops / eelapsed / 1000); printf("\t%5dms\t%5dmfps\n", eelapsed, loops * loops / eelapsed / 1000);
else else
printf("\tinf\n"); printf("\tinf\n");

View File

@@ -4,7 +4,7 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
if (argc < 2) { if (argc < 2) {
printf("Usage: example2 \"expression\"\n", argv[0]); printf("Usage: example2 \"expression\"\n");
return 0; return 0;
} }