Fixed a minor error in previous commit where the wrong function name is printed.

This commit is contained in:
flatmush 2011-02-25 12:09:55 +00:00
parent 8cbe9b3f9b
commit 10c82e1c17
1 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,11 @@
#define flt_func atanf
#define flt_func_str "atanf"
//#define fix_func fix16_sin
//#define fix_func_str "fix16_sin"
//#define flt_func sinf
//#define flt_func_str "sinf"
int main(int argc, char** argv) {
@ -68,7 +73,7 @@ int main(int argc, char** argv) {
fix_duration += (fix_end - fix_start);
}
printf("% 16s: %08"PRIuHICLOCK" @ %"PRIu32"Hz\n", fix_func_str, flt_duration, HICLOCKS_PER_SEC);
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)));