diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-20 22:31:20 +0100 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-21 16:30:07 +0100 |
commit | 74d6e04c21bddd435bd74c34dbe027b883772a76 (patch) | |
tree | 4221df9da5a17897296e5f7f841f01b1f6428c74 /src/util.h | |
parent | 78649b2f5941e0649db960cafb2997b5ca432be1 (diff) | |
download | atracdenc-74d6e04c21bddd435bd74c34dbe027b883772a76.tar.gz |
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -44,15 +44,15 @@ inline void SwapArray(T* p, const size_t len) { } template<size_t N> -inline void InvertSpectrInPlase(TFloat* in) { +inline void InvertSpectrInPlase(float* in) { for (size_t i = 0; i < N; i+=2) in[i] *= -1; } template<size_t N> -inline std::vector<TFloat> InvertSpectr(const TFloat* in) { - std::vector<TFloat> buf(N); - std::memcpy(&buf[0], in, N * sizeof(TFloat)); +inline std::vector<float> InvertSpectr(const float* in) { + std::vector<float> buf(N); + std::memcpy(&buf[0], in, N * sizeof(float)); InvertSpectrInPlase<N>(&buf[0]); return buf; } |