Revert "Attempt to fix differences between x86 FPU and SSE calculations."
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 23 Mar 2014 08:58:44 +0000 (19:58 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 23 Mar 2014 08:58:44 +0000 (19:58 +1100)
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

index de56f52..22aab4a 100644 (file)
@@ -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];
        }
 }