commit 4481d473057d49e4c643f81384f254039d6ee9fe
parent 4a6fcd5a3a976df9771ec76c4f21e9b7d43b5bfa
Author: [email protected] <[email protected]>
Date: Mon, 5 Sep 2016 11:26:52 +0300
Short FFT test on ARM
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/dft_test.cpp b/tests/dft_test.cpp
@@ -28,6 +28,12 @@ TEST(test_convolve)
CHECK(rms(c - univector<fbase>({ 0.25, 1., 2.75, 5., 7.5, 8.5, 7.75, 3.5, 1.25 })) < 0.0001);
}
+#ifdef CMT_ARCH_ARM
+constexpr size_t stopsize = 12;
+#else
+constexpr size_t stopsize = 21;
+#endif
+
TEST(fft_accuracy)
{
testo::active_test()->show_progress = true;
@@ -35,7 +41,7 @@ TEST(fft_accuracy)
testo::matrix(named("type") = float_types, //
named("inverse") = std::make_tuple(false, true), //
- named("log2(size)") = make_range(1, 21), //
+ named("log2(size)") = make_range(size_t(1), stopsize), //
[&gen](auto type, bool inverse, size_t log2size) {
using float_type = type_of<decltype(type)>;
const size_t size = 1 << log2size;