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 cb425db4be76de9a1532d13267d6c5f679aae194
parent 8b90112fcf52714089b676368c0150ebe5ef3def
Author: [email protected] <[email protected]>
Date:   Wed,  7 Sep 2016 14:08:36 +0300

Code formatting

Diffstat:
Minclude/kfr/dft/reference_dft.hpp | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/kfr/dft/reference_dft.hpp b/include/kfr/dft/reference_dft.hpp @@ -97,7 +97,7 @@ template <typename Tnumber = long double, typename T> void reference_fft(complex<T>* out, const T* in, size_t size) { constexpr bool inversion = false; - using Tcmplx = Tnumber(*)[2]; + using Tcmplx = Tnumber(*)[2]; if (size < 2) return; std::vector<complex<Tnumber>> datain(size); @@ -114,7 +114,7 @@ template <typename Tnumber = long double, typename T> void reference_fft(T* out, const complex<T>* in, size_t size) { constexpr bool inversion = true; - using Tcmplx = Tnumber(*)[2]; + using Tcmplx = Tnumber(*)[2]; if (size < 2) return; std::vector<complex<Tnumber>> datain(size); @@ -124,8 +124,8 @@ void reference_fft(T* out, const complex<T>* in, size_t size) const Tnumber pi2 = c_pi<Tnumber, 2, 1>; reference_fft_pass<Tnumber>(pi2, size, 0, 1, inversion ? -1 : +1, Tcmplx(datain.data()), Tcmplx(dataout.data()), Tcmplx(temp.data())); - for(size_t i = 0; i < size; i++) - out[i] = dataout[i].real(); + for (size_t i = 0; i < size; i++) + out[i] = dataout[i].real(); } template <typename Tnumber = long double, typename T>