fix formatting

This commit is contained in:
maruncz 2021-04-22 09:10:50 +02:00
parent edcfdea949
commit 17a6197819
3 changed files with 88 additions and 93 deletions

View File

@ -87,15 +87,10 @@ int main(int argc, char **argv)
fix_duration += (fix_end - fix_start);
}
printf("%16s: %08" PRIuHICLOCK " @ %" PRIu32 "Hz\n", flt_func_str,
flt_duration, HICLOCKS_PER_SEC);
printf("%16s: %08" PRIuHICLOCK " @ %" PRIu32 "Hz\n", fix_func_str,
fix_duration, HICLOCKS_PER_SEC);
printf(" Difference: %08" PRIiHICLOCK " (% 3.2f%%)\n",
(flt_duration - fix_duration),
((fix_duration * 100.0) / flt_duration));
printf(" Error: %f%%\n",
((fix16_to_dbl(fix_error) * 100.0) / (args * pass)));
printf("%16s: %08" PRIuHICLOCK " @ %" PRIu32 "Hz\n", flt_func_str, flt_duration, HICLOCKS_PER_SEC);
printf("%16s: %08" PRIuHICLOCK " @ %" PRIu32 "Hz\n", fix_func_str, fix_duration, HICLOCKS_PER_SEC);
printf(" Difference: %08" PRIiHICLOCK " (% 3.2f%%)\n", (flt_duration - fix_duration), ((fix_duration * 100.0) / flt_duration));
printf(" Error: %f%%\n", ((fix16_to_dbl(fix_error) * 100.0) / (args * pass)));
return EXIT_SUCCESS;
}