aboutsummaryrefslogtreecommitdiffstats
path: root/src/MemlessPoly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MemlessPoly.cpp')
-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;