aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/x86util.asm
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-06-29 14:43:11 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-06-29 14:43:11 +0000
commit2dd2f71692996e66efd1f8055ac47d19799e589a (patch)
tree863455573fb776a860d8feeda7ec400fa3c4e518 /libavcodec/x86/x86util.asm
parent29e719377f0643a38d6f66b029ddfbc2441dffda (diff)
downloadffmpeg-2dd2f71692996e66efd1f8055ac47d19799e589a.tar.gz
MMX idct_add for VP8.
Originally committed as revision 23886 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/x86util.asm')
-rw-r--r--libavcodec/x86/x86util.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/x86/x86util.asm b/libavcodec/x86/x86util.asm
index 674ca1aab1..3051a7f147 100644
--- a/libavcodec/x86/x86util.asm
+++ b/libavcodec/x86/x86util.asm
@@ -365,3 +365,18 @@
packuswb %1, %1
movh %4, %1
%endmacro
+
+%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride
+ movh %3, [%7]
+ movh %4, [%7+%8]
+ punpcklbw %3, %5
+ punpcklbw %4, %5
+ psraw %1, %6
+ psraw %2, %6
+ paddw %3, %1
+ paddw %4, %2
+ packuswb %3, %5
+ packuswb %4, %5
+ movh [%7], %3
+ movh [%7+%8], %4
+%endmacro