From 697dbdee8fbc5c21a9288f09242a00d8086e5211 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 23 Mar 2014 19:58:44 +1100 Subject: [PATCH] Revert "Attempt to fix differences between x86 FPU and SSE calculations." This reverts commit 70b078cfd5f9d4b0692c33f018cac3c652b14f90. The code in the patch we're reverting probably only works for one compiler and could easily stop working with the next release of that compiler. --- src/libFLAC/lpc.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/libFLAC/lpc.c b/src/libFLAC/lpc.c index de56f52d..22aab4a4 100644 --- a/src/libFLAC/lpc.c +++ b/src/libFLAC/lpc.c @@ -99,7 +99,7 @@ void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_le * this version tends to run faster because of better data locality * ('data_len' is usually much larger than 'lag') */ - FLAC__real d, tmp; + FLAC__real d; unsigned sample, coeff; const unsigned limit = data_len - lag; @@ -110,17 +110,13 @@ void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_le autoc[coeff] = 0.0; for(sample = 0; sample <= limit; sample++) { d = data[sample]; - for(coeff = 0; coeff < lag; coeff++) { - tmp = d * data[sample+coeff]; - autoc[coeff] += tmp; - } + for(coeff = 0; coeff < lag; coeff++) + autoc[coeff] += d * data[sample+coeff]; } for(; sample < data_len; sample++) { d = data[sample]; - for(coeff = 0; coeff < data_len - sample; coeff++) { - tmp = d * data[sample+coeff]; - autoc[coeff] += tmp; - } + for(coeff = 0; coeff < data_len - sample; coeff++) + autoc[coeff] += d * data[sample+coeff]; } }