aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/cavsdsp_mmx.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-06-22 22:10:31 +0100
committerMans Rullgard <mans@mansr.com>2012-06-23 14:14:06 +0100
commit685f5438bbbf99126856c165f64638e66a4ed355 (patch)
tree484d997eca2832131c2ba0d00873abc8efcbbe07 /libavcodec/x86/cavsdsp_mmx.c
parent41e637e44902246efa17babf26e9be8a4a519e6f (diff)
downloadffmpeg-685f5438bbbf99126856c165f64638e66a4ed355.tar.gz
x86: move some inline asm macros to the only places they are used
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86/cavsdsp_mmx.c')
-rw-r--r--libavcodec/x86/cavsdsp_mmx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/x86/cavsdsp_mmx.c b/libavcodec/x86/cavsdsp_mmx.c
index 3bc62ea156..f56f85932a 100644
--- a/libavcodec/x86/cavsdsp_mmx.c
+++ b/libavcodec/x86/cavsdsp_mmx.c
@@ -29,6 +29,12 @@
#include "libavcodec/cavsdsp.h"
#include "dsputil_mmx.h"
+/* in/out: mma=mma+mmb, mmb=mmb-mma */
+#define SUMSUB_BA( a, b ) \
+ "paddw "#b", "#a" \n\t"\
+ "paddw "#b", "#b" \n\t"\
+ "psubw "#a", "#b" \n\t"
+
/*****************************************************************************
*
* inverse transform