aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflatmush <flatmush@d3e1167c-abe1-51d5-8199-f9061ebe54e4>2011-02-25 12:09:55 +0000
committerflatmush <flatmush@d3e1167c-abe1-51d5-8199-f9061ebe54e4>2011-02-25 12:09:55 +0000
commit10c82e1c1770f6c956e108d63af2ab9a57ce370d (patch)
tree6b1c645e4ee37920f21adf5fa9d709d98b1787ce
parent8cbe9b3f9ba031773aea33e41ba1b7e77802beba (diff)
downloadlibfixmath-10c82e1c1770f6c956e108d63af2ab9a57ce370d.tar.gz
Fixed a minor error in previous commit where the wrong function name is printed.
-rw-r--r--fixtest/main.c7
1 files changed, 6 insertions, 1 deletions
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)));