summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2014-03-23 19:58:44 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2014-03-23 19:58:44 +1100
commit697dbdee8fbc5c21a9288f09242a00d8086e5211 (patch)
tree654f154a5a7a69d362c6f2cce5fb68b6d4feceb8 /src
parent70b078cfd5f9d4b0692c33f018cac3c652b14f90 (diff)
downloadflac-697dbdee8fbc5c21a9288f09242a00d8086e5211.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/libFLAC/lpc.c14
1 files 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];
}
}