mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-12-03 19:33:33 +01:00
30 lines
829 B
Diff
30 lines
829 B
Diff
diff --git a/libavcodec/x86/lpc_init.c b/libavcodec/x86/lpc_init.c
|
|
index f2fca53799..da2c5a526d 100644
|
|
--- a/libavcodec/x86/lpc_init.c
|
|
+++ b/libavcodec/x86/lpc_init.c
|
|
@@ -19,6 +19,7 @@
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
+#include "config.h"
|
|
#include "libavutil/attributes.h"
|
|
#include "libavutil/x86/asm.h"
|
|
#include "libavutil/x86/cpu.h"
|
|
@@ -112,9 +113,13 @@ av_cold void ff_lpc_init_x86(LPCContext *c)
|
|
c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;
|
|
#endif
|
|
|
|
+#if HAVE_SSE2_EXTERNAL
|
|
if (EXTERNAL_SSE2(cpu_flags))
|
|
c->lpc_apply_welch_window = ff_lpc_apply_welch_window_sse2;
|
|
+#endif
|
|
|
|
+#if HAVE_AVX2_EXTERNAL
|
|
if (EXTERNAL_AVX2(cpu_flags))
|
|
c->lpc_apply_welch_window = ff_lpc_apply_welch_window_avx2;
|
|
+#endif
|
|
}
|
|
--
|
|
2.43.0.windows.1
|
|
|