From 7c8bf09eddf4fe738eb05bec68479024a66bbde9 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 17 Mar 2014 17:07:34 -0300 Subject: swresample: change COMMON_CORE_INT16 asm from SSSE3 to SSE2 pshuf+paddd is slightly faster than phaddd. The real gain is in pre-ssse3 processors like AMD K8 and K10, which get a big boost in performance compared to the mmxext version Signed-off-by: James Almer Signed-off-by: Michael Niedermayer --- libswresample/resample_template.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libswresample/resample_template.c') diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c index 5bc12bc..bdb038a 100644 --- a/libswresample/resample_template.c +++ b/libswresample/resample_template.c @@ -57,7 +57,7 @@ #elif defined(TEMPLATE_RESAMPLE_S16) \ || defined(TEMPLATE_RESAMPLE_S16_MMX2) \ - || defined(TEMPLATE_RESAMPLE_S16_SSSE3) + || defined(TEMPLATE_RESAMPLE_S16_SSE2) # define FILTER_SHIFT 15 # define DELEM int16_t @@ -74,9 +74,9 @@ # elif defined(TEMPLATE_RESAMPLE_S16_MMX2) # define COMMON_CORE COMMON_CORE_INT16_MMX2 # define RENAME(N) N ## _int16_mmx2 -# elif defined(TEMPLATE_RESAMPLE_S16_SSSE3) -# define COMMON_CORE COMMON_CORE_INT16_SSSE3 -# define RENAME(N) N ## _int16_ssse3 +# elif defined(TEMPLATE_RESAMPLE_S16_SSE2) +# define COMMON_CORE COMMON_CORE_INT16_SSE2 +# define RENAME(N) N ## _int16_sse2 # endif #endif -- cgit v1.1