[FFmpeg-devel] [PATCH] x86/motion_est: enable sad16_sse2 on k10 CPUs

James Almer jamrial at gmail.com
Sat May 31 21:36:45 CEST 2014


The check is meant for k8 CPUs. sad16_sse2 is ~20% faster than sad16_mmxext on k10.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/x86/motion_est.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/motion_est.c b/libavcodec/x86/motion_est.c
index f1e782b..ef614c9 100644
--- a/libavcodec/x86/motion_est.c
+++ b/libavcodec/x86/motion_est.c
@@ -481,7 +481,7 @@ av_cold void ff_dsputil_init_pix_mmx(DSPContext *c, AVCodecContext *avctx)
             c->pix_abs[1][3] = sad8_xy2_mmxext;
         }
     }
-    if (INLINE_SSE2(cpu_flags) && !(cpu_flags & AV_CPU_FLAG_3DNOW) && avctx->codec_id != AV_CODEC_ID_SNOW) {
+    if (INLINE_SSE2(cpu_flags) && !(cpu_flags & AV_CPU_FLAG_SSE2SLOW) && avctx->codec_id != AV_CODEC_ID_SNOW) {
         c->sad[0] = sad16_sse2;
     }
 #endif /* HAVE_INLINE_ASM */
-- 
1.8.5.5



More information about the ffmpeg-devel mailing list