kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 199751ba124cd3b96e58167e083011aef43ffca5
parent 6cda7d9087c74d7793b8d5f39c6866cef7ce94f5
Author: [email protected] <[email protected]>
Date:   Sun, 30 Jul 2023 08:51:05 +0100

Fix for DFT with KFR_DFT_NO_NPo2

Diffstat:
Mtests/dft_test.cpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/dft_test.cpp b/tests/dft_test.cpp @@ -156,11 +156,15 @@ TEST(test_complex_correlate) #if defined CMT_ARCH_ARM || !defined NDEBUG constexpr size_t fft_stopsize = 12; +#ifndef KFR_DFT_NO_NPo2 constexpr size_t dft_stopsize = 101; +#endif #else constexpr size_t fft_stopsize = 20; +#ifndef KFR_DFT_NO_NPo2 constexpr size_t dft_stopsize = 257; #endif +#endif TEST(fft_real) { @@ -175,6 +179,7 @@ TEST(fft_real) CHECK(rms(rev - in) <= 0.00001f); } +#ifndef KFR_DFT_NO_NPo2 TEST(fft_real_not_size_4N) { kfr::univector<double, 6> in = counter(); @@ -192,6 +197,7 @@ TEST(fft_real_not_size_4N) kfr::univector<double, size> rev2 = irealdft(out2) / size; CHECK(rms(rev2 - in2) <= 0.00001f); } +#endif TEST(fft_accuracy) {