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 deb4387ea4d91d161d395c7154ed19908b3d06dc
parent a6c2305a8196cb8bb7edf8d369e3052c0ef82fb2
Author: [email protected] <[email protected]>
Date:   Mon, 22 Jan 2024 08:11:35 +0000

convolution codestyle fixes

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

diff --git a/include/kfr/dft/convolution.hpp b/include/kfr/dft/convolution.hpp @@ -117,7 +117,7 @@ protected: void process_buffer(T* output, const T* input, size_t size) final; using ST = subtype<T>; - static constexpr auto real_fft = !std::is_same<T, complex<ST>>::value; + constexpr static bool real_fft = !std::is_same_v<T, complex<ST>>; using plan_t = internal::dft_conv_plan<T>; // Length of filter data. diff --git a/include/kfr/dft/impl/convolution-impl.cpp b/include/kfr/dft/impl/convolution-impl.cpp @@ -128,7 +128,7 @@ void convolve_filter<T>::process_buffer(T* output, const T* input, size_t size) // blocks (processing == block_size) or only one segment. // For complex filtering, use CCs pack format to omit special processing in fft_multiply[_accumulate]. - static constexpr auto fft_multiply_pack = real_fft ? dft_pack_format::Perm : dft_pack_format::CCs; + const dft_pack_format fft_multiply_pack = this->real_fft ? dft_pack_format::Perm : dft_pack_format::CCs; size_t processed = 0; while (processed < size)