From 2c7b3313520b8458cc5aa76c1d213071770ac12e Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Tue, 2 Feb 2021 11:13:35 +0800 Subject: [PATCH] Pass literal type names to STARCH_BENCHMARK_ALLOC (fixes #103) --- dsp/benchmark/magnitude_power_uc8_benchmark.c | 2 +- dsp/benchmark/magnitude_sc16_benchmark.c | 2 +- dsp/benchmark/magnitude_sc16q11_benchmark.c | 2 +- dsp/benchmark/magnitude_uc8_benchmark.c | 2 +- dsp/benchmark/mean_power_u16_benchmark.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dsp/benchmark/magnitude_power_uc8_benchmark.c b/dsp/benchmark/magnitude_power_uc8_benchmark.c index 1c1c105..748167b 100644 --- a/dsp/benchmark/magnitude_power_uc8_benchmark.c +++ b/dsp/benchmark/magnitude_power_uc8_benchmark.c @@ -8,7 +8,7 @@ void STARCH_BENCHMARK(magnitude_power_uc8) (void) const unsigned len = 65536; double out_level, out_power; - if (!(in = STARCH_BENCHMARK_ALLOC(len, *in)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, *out_mag))) { + if (!(in = STARCH_BENCHMARK_ALLOC(len, uc8_t)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, uint16_t))) { goto done; } diff --git a/dsp/benchmark/magnitude_sc16_benchmark.c b/dsp/benchmark/magnitude_sc16_benchmark.c index 8c1edee..be48229 100644 --- a/dsp/benchmark/magnitude_sc16_benchmark.c +++ b/dsp/benchmark/magnitude_sc16_benchmark.c @@ -8,7 +8,7 @@ void STARCH_BENCHMARK(magnitude_sc16) (void) uint16_t *out_mag = NULL; const unsigned len = 262144; - if (!(in = STARCH_BENCHMARK_ALLOC(len, *in)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, *out_mag))) { + if (!(in = STARCH_BENCHMARK_ALLOC(len, sc16_t)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, uint16_t))) { goto done; } diff --git a/dsp/benchmark/magnitude_sc16q11_benchmark.c b/dsp/benchmark/magnitude_sc16q11_benchmark.c index a08b96e..d704abf 100644 --- a/dsp/benchmark/magnitude_sc16q11_benchmark.c +++ b/dsp/benchmark/magnitude_sc16q11_benchmark.c @@ -8,7 +8,7 @@ void STARCH_BENCHMARK(magnitude_sc16q11) (void) uint16_t *out_mag = NULL; const unsigned len = 65536; - if (!(in = STARCH_BENCHMARK_ALLOC(len, *in)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, *out_mag))) { + if (!(in = STARCH_BENCHMARK_ALLOC(len, sc16_t)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, uint16_t))) { goto done; } diff --git a/dsp/benchmark/magnitude_uc8_benchmark.c b/dsp/benchmark/magnitude_uc8_benchmark.c index e03fc0c..1c56676 100644 --- a/dsp/benchmark/magnitude_uc8_benchmark.c +++ b/dsp/benchmark/magnitude_uc8_benchmark.c @@ -7,7 +7,7 @@ void STARCH_BENCHMARK(magnitude_uc8) (void) uint16_t *out_mag = NULL; const unsigned len = 65536; - if (!(in = STARCH_BENCHMARK_ALLOC(len, *in)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, *out_mag))) { + if (!(in = STARCH_BENCHMARK_ALLOC(len, uc8_t)) || !(out_mag = STARCH_BENCHMARK_ALLOC(len, uint16_t))) { goto done; } diff --git a/dsp/benchmark/mean_power_u16_benchmark.c b/dsp/benchmark/mean_power_u16_benchmark.c index 16c60fd..690e63f 100644 --- a/dsp/benchmark/mean_power_u16_benchmark.c +++ b/dsp/benchmark/mean_power_u16_benchmark.c @@ -6,7 +6,7 @@ void STARCH_BENCHMARK(mean_power_u16) (void) double mean_mag, mean_magsq; const unsigned len = 65536; - if (!(in = STARCH_BENCHMARK_ALLOC(len, *in))) { + if (!(in = STARCH_BENCHMARK_ALLOC(len, uint16_t))) { goto done; }