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 7cf0dc1fa174a34b6d87d0600338b53d04bbf65a
parent 6006fbeaf14c7f8b8cde86a279b89cd025fa6eb0
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Thu, 15 Apr 2021 11:52:39 +0000

Fix field order in convolve_filter

Diffstat:
Minclude/kfr/dft/impl/convolution-impl.cpp | 6+++---
Minclude/kfr/dft/impl/ft.hpp | 1+
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/kfr/dft/impl/convolution-impl.cpp b/include/kfr/dft/impl/convolution-impl.cpp @@ -85,9 +85,9 @@ univector<T> autocorrelate(const univector_ref<const T>& src1) template <typename T> convolve_filter<T>::convolve_filter(size_t size_, size_t block_size_) : data_size(size_), block_size(next_poweroftwo(block_size_)), fft(2 * block_size), temp(fft.temp_size), - segments((data_size + block_size - 1) / block_size), ir_segments(segments.size()), input_position(0), - saved_input(block_size), premul(fft.csize()), cscratch(fft.csize()), scratch1(fft.size), - scratch2(fft.size), overlap(block_size), position(0) + segments((data_size + block_size - 1) / block_size), position(0), ir_segments(segments.size()), + saved_input(block_size), input_position(0), premul(fft.csize()), cscratch(fft.csize()), + scratch1(fft.size), scratch2(fft.size), overlap(block_size) { } diff --git a/include/kfr/dft/impl/ft.hpp b/include/kfr/dft/impl/ft.hpp @@ -1809,3 +1809,4 @@ KFR_INTRINSIC void cdigitreverse4_write<false, f64, 32>(complex<f64>* dest, cons } // namespace kfr CMT_PRAGMA_MSVC(warning(pop)) +