summaryrefslogtreecommitdiffstats
path: root/src/MemlessPoly.cpp
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-21 12:12:17 +0200
committerandreas128 <Andreas>2017-08-21 12:12:17 +0200
commit82afb7250e07b84d5442111a47fa2c1ecb570318 (patch)
treeb70ee758c69fafb03381954343fb90fc920b5c9a /src/MemlessPoly.cpp
parentcc12ba55d31f13a231da76d78b9764696217d6c6 (diff)
downloaddabmod-82afb7250e07b84d5442111a47fa2c1ecb570318.tar.gz
dabmod-82afb7250e07b84d5442111a47fa2c1ecb570318.tar.bz2
dabmod-82afb7250e07b84d5442111a47fa2c1ecb570318.zip
Fix loop unrolling
Diffstat (limited to 'src/MemlessPoly.cpp')
-rw-r--r--src/MemlessPoly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp
index 2a16ebe..ba603cb 100644
--- a/src/MemlessPoly.cpp
+++ b/src/MemlessPoly.cpp
@@ -149,7 +149,7 @@ static void apply_coeff(
float in_1_8 = in_1_4 * in_1_4;
float in_1_10 = in_1_6 * in_1_4;
- float in_2_mag = std::abs(in[i]);
+ float in_2_mag = std::abs(in[i+1]);
float in_2_2 = in_2_mag * in_2_mag;
float in_2_4 = in_2_2 * in_2_2;
float in_2_6 = in_2_2 * in_2_4;