aboutsummaryrefslogtreecommitdiffstats
path: root/src/anetz
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2018-11-10 15:16:20 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2018-11-10 15:18:28 +0100
commit32025915d564d999c33e73a4b6084d9df0dbd42a (patch)
tree718328859560d735f40d7a71ac3e75e0c339202e /src/anetz
parente8429166c3bfa5077d0dc353f345834e831f3e34 (diff)
Make run faster on ARM CPUs using fast math approximation
Use --fast-math to use sine/cosine tables and approximate atan2.
Diffstat (limited to 'src/anetz')
-rw-r--r--src/anetz/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/anetz/main.c b/src/anetz/main.c
index 35fc036..bc28897 100644
--- a/src/anetz/main.c
+++ b/src/anetz/main.c
@@ -29,6 +29,7 @@
#include "../libtimer/timer.h"
#include "../libmobile/call.h"
#include "../liboptions/options.h"
+#include "../libfm/fm.h"
#include "freiton.h"
#include "besetztton.h"
#include "anetz.h"
@@ -176,6 +177,8 @@ int main(int argc, char *argv[])
if (!loopback)
print_image();
+ /* inits */
+ fm_init(fast_math);
dsp_init();
anetz_init();
@@ -196,6 +199,9 @@ fail:
while (sender_head)
anetz_destroy(sender_head);
+ /* exits */
+ fm_exit();
+
return 0;
}