aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/vp9dsp_init.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-01-18 02:29:22 -0300
committerMichael Niedermayer <michaelni@gmx.at>2014-01-18 17:08:25 +0100
commit26800e386454597481f5a74eeedf3ca5ef5e2987 (patch)
treee76a8ec488ab759ebeb9c31f0d601d7fd31dc961 /libavcodec/x86/vp9dsp_init.c
parent0117ba5594702c6e42767ac93358f57c24416514 (diff)
downloadffmpeg-26800e386454597481f5a74eeedf3ca5ef5e2987.tar.gz
vp9/x86: rename ff_avg[48]_sse to ff_avg[48]_mmxext
pavgb is an sse integer instruction, so the mmxext flag is enough Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/vp9dsp_init.c')
-rw-r--r--libavcodec/x86/vp9dsp_init.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libavcodec/x86/vp9dsp_init.c b/libavcodec/x86/vp9dsp_init.c
index ab3396e098..f6a213529c 100644
--- a/libavcodec/x86/vp9dsp_init.c
+++ b/libavcodec/x86/vp9dsp_init.c
@@ -38,8 +38,8 @@ fpel_func(put, 8, mmx);
fpel_func(put, 16, sse);
fpel_func(put, 32, sse);
fpel_func(put, 64, sse);
-fpel_func(avg, 4, sse);
-fpel_func(avg, 8, sse);
+fpel_func(avg, 4, mmxext);
+fpel_func(avg, 8, mmxext);
fpel_func(avg, 16, sse2);
fpel_func(avg, 32, sse2);
fpel_func(avg, 64, sse2);
@@ -225,12 +225,15 @@ av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp)
init_fpel(3, 0, 8, put, mmx);
}
+ if (EXTERNAL_MMXEXT(cpu_flags)) {
+ init_fpel(4, 1, 4, avg, mmxext);
+ init_fpel(3, 1, 8, avg, mmxext);
+ }
+
if (EXTERNAL_SSE(cpu_flags)) {
init_fpel(2, 0, 16, put, sse);
init_fpel(1, 0, 32, put, sse);
init_fpel(0, 0, 64, put, sse);
- init_fpel(4, 1, 4, avg, sse);
- init_fpel(3, 1, 8, avg, sse);
}
if (EXTERNAL_SSE2(cpu_flags)) {