aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test_dtmf.c
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/test/test_dtmf.c
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/test/test_dtmf.c')
-rw-r--r--src/test/test_dtmf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_dtmf.c b/src/test/test_dtmf.c
index 8f56e5c..6640c59 100644
--- a/src/test/test_dtmf.c
+++ b/src/test/test_dtmf.c
@@ -63,6 +63,8 @@ int main(void)
int f, i;
double target;
+ fm_init(0);
+
dtmf_decode_init(&dtmf_dec, NULL, recv_digit, SAMPLERATE, db2level(0), db2level(-30.0));
for (f = 0; f < 8; f++) {
@@ -109,6 +111,8 @@ int main(void)
dtmf_decode_exit(&dtmf_dec);
+ fm_exit();
+
return 0;
}