From 82afb7250e07b84d5442111a47fa2c1ecb570318 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Mon, 21 Aug 2017 12:12:17 +0200 Subject: Fix loop unrolling --- src/MemlessPoly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3