From 108512604942682df1b37c4264c13eeeab56ed13 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin <jmvalin@amazon.com> Date: Mon, 20 Nov 2023 16:18:13 -0500 Subject: [PATCH] Remove AVX pitch code for fixed-point --- celt/x86/pitch_avx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/celt/x86/pitch_avx.c b/celt/x86/pitch_avx.c index 7bb4ac18a..f731762d8 100644 --- 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 @@ void celt_pitch_xcorr_avx2(const float *_x, const float *_y, float *xcorr, int l xcorr[i] = celt_inner_prod(_x, _y+i, len, arch); } } + +#endif -- GitLab