From 10c82e1c1770f6c956e108d63af2ab9a57ce370d Mon Sep 17 00:00:00 2001 From: flatmush Date: Fri, 25 Feb 2011 12:09:55 +0000 Subject: Fixed a minor error in previous commit where the wrong function name is printed. --- fixtest/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fixtest/main.c b/fixtest/main.c index 93c945b..bba960a 100644 --- a/fixtest/main.c +++ b/fixtest/main.c @@ -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))); -- cgit v1.2.3