aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test_performance.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-05-13 16:04:00 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-05-15 21:46:32 +0200
commitca10048e5caa77d8ed4c4902336f8ef88738a5e0 (patch)
treeb760e6bc3d44e187298e692bccfa6136812a40c5 /src/test/test_performance.c
parentd03443c4f158c537f071487d12ed9fca631539a7 (diff)
Rename filter -> iir_filter (file name and instance name)
This is useful when using fir_filter in the future.
Diffstat (limited to 'src/test/test_performance.c')
-rw-r--r--src/test/test_performance.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/test_performance.c b/src/test/test_performance.c
index 622df67..3f9cb40 100644
--- a/src/test/test_performance.c
+++ b/src/test/test_performance.c
@@ -4,7 +4,7 @@
#include <string.h>
#include <sys/time.h>
#include "../common/sample.h"
-#include "../common/filter.h"
+#include "../common/iir_filter.h"
#include "../common/fm_modulation.h"
#include "../common/debug.h"
@@ -33,7 +33,7 @@ sample_t samples[SAMPLES];
float buff[SAMPLES * 2];
fm_mod_t mod;
fm_demod_t demod;
-filter_t lp;
+iir_filter_t lp;
int main(void)
{
@@ -47,19 +47,19 @@ int main(void)
fm_demodulate(&demod, samples, SAMPLES, buff);
T_STOP("FM demodulate", SAMPLES)
- filter_lowpass_init(&lp, 10000.0 / 2.0, 50000, 1);
+ iir_lowpass_init(&lp, 10000.0 / 2.0, 50000, 1);
T_START()
- filter_process(&lp, samples, SAMPLES);
+ iir_process(&lp, samples, SAMPLES);
T_STOP("low-pass filter (second order)", SAMPLES)
- filter_lowpass_init(&lp, 10000.0 / 2.0, 50000, 2);
+ iir_lowpass_init(&lp, 10000.0 / 2.0, 50000, 2);
T_START()
- filter_process(&lp, samples, SAMPLES);
+ iir_process(&lp, samples, SAMPLES);
T_STOP("low-pass filter (fourth order)", SAMPLES)
- filter_lowpass_init(&lp, 10000.0 / 2.0, 50000, 4);
+ iir_lowpass_init(&lp, 10000.0 / 2.0, 50000, 4);
T_START()
- filter_process(&lp, samples, SAMPLES);
+ iir_process(&lp, samples, SAMPLES);
T_STOP("low-pass filter (eigth order)", SAMPLES)
return 0;