diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2018-11-10 15:16:20 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2018-11-10 15:18:28 +0100 |
commit | 32025915d564d999c33e73a4b6084d9df0dbd42a (patch) | |
tree | 718328859560d735f40d7a71ac3e75e0c339202e /src/cnetz/main.c | |
parent | e8429166c3bfa5077d0dc353f345834e831f3e34 (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/cnetz/main.c')
-rw-r--r-- | src/cnetz/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cnetz/main.c b/src/cnetz/main.c index a4fca5f..021eccb 100644 --- a/src/cnetz/main.c +++ b/src/cnetz/main.c @@ -29,6 +29,7 @@ #include "../anetz/freiton.h" #include "../anetz/besetztton.h" #include "../liboptions/options.h" +#include "../libfm/fm.h" #include "cnetz.h" #include "database.h" #include "sysinfo.h" @@ -459,7 +460,8 @@ int main(int argc, char *argv[]) if (!loopback) print_image(); - /* init functions */ + /* inits */ + fm_init(fast_math); scrambler_init(); if (futln_sperre_start >= 0) { teilnehmergruppensperre = futln_sperre_start; @@ -561,6 +563,9 @@ fail: while (sender_head) cnetz_destroy(sender_head); + /* exits */ + fm_exit(); + return 0; } |