summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-24 19:26:47 +0200
committerandreas128 <Andreas>2017-08-24 19:26:47 +0200
commit3ca742663b6bf20a89c28a70668f50ceee6a23d0 (patch)
treed0c8fc956ca88a9ae49c8cf01c8e5fcb7e81ae95 /src
parent28462b9d8bb08609810ea9a9882c5fa9205b8b80 (diff)
parentcedc4708cf73151c6b887198b14851c6adf8fc86 (diff)
downloaddabmod-3ca742663b6bf20a89c28a70668f50ceee6a23d0.tar.gz
dabmod-3ca742663b6bf20a89c28a70668f50ceee6a23d0.tar.bz2
dabmod-3ca742663b6bf20a89c28a70668f50ceee6a23d0.zip
Remove polynom term without coefficient
Diffstat (limited to 'src')
-rw-r--r--src/MemlessPoly.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp
index d665839..e103b73 100644
--- a/src/MemlessPoly.cpp
+++ b/src/MemlessPoly.cpp
@@ -175,7 +175,6 @@ void MemlessPoly::load_coefficients_pm(const std::string &coefFile_pm)
/* The restrict keyword is C99, g++ and clang++ however support __restrict
* instead, and this allows the compiler to auto-vectorize the loop.
*/
-
static void apply_coeff(
const vector<float> &coefs_am,
const vector<float> &coefs_pm,
@@ -191,14 +190,14 @@ static void apply_coeff(
( coefs_am[1] + in_mag_sq *
( coefs_am[2] + in_mag_sq *
( coefs_am[3] + in_mag_sq *
- ( coefs_am[4] + in_mag_sq )))));
+ coefs_am[4]))));
float phase_correction = -1 *
( coefs_pm[0] + in_mag_sq *
( coefs_pm[1] + in_mag_sq *
( coefs_pm[2] + in_mag_sq *
( coefs_pm[3] + in_mag_sq *
- ( coefs_pm[4] + in_mag_sq )))));
+ coefs_pm[4]))));
float phase_correction_sq = phase_correction * phase_correction;