aboutsummaryrefslogtreecommitdiff
path: root/fixtest
diff options
context:
space:
mode:
Diffstat (limited to 'fixtest')
-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)));