Pass literal type names to STARCH_BENCHMARK_ALLOC (fixes #103)
This commit is contained in:
parent
f1c576b657
commit
2c7b331352
|
|
@ -8,7 +8,7 @@ void STARCH_BENCHMARK(magnitude_power_uc8) (void)
|
||||||
const unsigned len = 65536;
|
const unsigned len = 65536;
|
||||||
double out_level, out_power;
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ void STARCH_BENCHMARK(magnitude_sc16) (void)
|
||||||
uint16_t *out_mag = NULL;
|
uint16_t *out_mag = NULL;
|
||||||
const unsigned len = 262144;
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ void STARCH_BENCHMARK(magnitude_sc16q11) (void)
|
||||||
uint16_t *out_mag = NULL;
|
uint16_t *out_mag = NULL;
|
||||||
const unsigned len = 65536;
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ void STARCH_BENCHMARK(magnitude_uc8) (void)
|
||||||
uint16_t *out_mag = NULL;
|
uint16_t *out_mag = NULL;
|
||||||
const unsigned len = 65536;
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ void STARCH_BENCHMARK(mean_power_u16) (void)
|
||||||
double mean_mag, mean_magsq;
|
double mean_mag, mean_magsq;
|
||||||
const unsigned len = 65536;
|
const unsigned len = 65536;
|
||||||
|
|
||||||
if (!(in = STARCH_BENCHMARK_ALLOC(len, *in))) {
|
if (!(in = STARCH_BENCHMARK_ALLOC(len, uint16_t))) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue