shithub: opus

Download patch

ref: 108512604942682df1b37c4264c13eeeab56ed13
parent: 161358d6c47dd95dea64ebc09500a54024b79d74
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Mon Nov 20 11:18:13 EST 2023

Remove AVX pitch code for fixed-point

--- a/celt/x86/pitch_avx.c
+++ b/celt/x86/pitch_avx.c
@@ -33,6 +33,8 @@
 #include "x86cpu.h"
 #include "pitch.h"
 
+#if defined(OPUS_X86_MAY_HAVE_AVX2) && !defined(FIXED_POINT)
+
 /* Like the "regular" xcorr_kernel(), but computes 8 results at a time. */
 static void xcorr_kernel_avx(const float *x, const float *y, float sum[8], int len)
 {
@@ -95,3 +97,5 @@
       xcorr[i] = celt_inner_prod(_x, _y+i, len, arch);
    }
 }
+
+#endif
--