summaryrefslogtreecommitdiff
path: root/libavcodec/x86/mpegvideoenc_template.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-08-28 17:37:54 +0200
committerDiego Biurrun <diego@biurrun.de>2012-08-29 00:14:52 +0200
commitd39791bf398bedd842ed75260e9de6fcc64c6fe0 (patch)
treefeaa07d9f34081492e6bef0148ef38c131a4b7d3 /libavcodec/x86/mpegvideoenc_template.c
parentd488c3bcbaf7ddda42597e014deb661a7e9e2112 (diff)
x86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiation
This avoids trouble if HAVE_ variables are used elsewhere in the file.
Diffstat (limited to 'libavcodec/x86/mpegvideoenc_template.c')
-rw-r--r--libavcodec/x86/mpegvideoenc_template.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/x86/mpegvideoenc_template.c b/libavcodec/x86/mpegvideoenc_template.c
index 195298d8f3..a6e7ba45ee 100644
--- a/libavcodec/x86/mpegvideoenc_template.c
+++ b/libavcodec/x86/mpegvideoenc_template.c
@@ -29,7 +29,7 @@
#undef SAVE_SIGN
#undef RESTORE_SIGN
-#if HAVE_SSE2
+#if COMPILE_TEMPLATE_SSE2
#define MMREG_WIDTH "16"
#define MM "%%xmm"
#define MOVQ "movdqa"
@@ -48,7 +48,7 @@
#define MMREG_WIDTH "8"
#define MM "%%mm"
#define MOVQ "movq"
-#if HAVE_MMXEXT
+#if COMPILE_TEMPLATE_MMXEXT
#define SPREADW(a) "pshufw $0, "a", "a" \n\t"
#define PMAXW(a,b) "pmaxsw "a", "b" \n\t"
#define PMAX(a,b) \
@@ -74,7 +74,7 @@
#endif
#endif
-#if HAVE_SSSE3
+#if COMPILE_TEMPLATE_SSSE3
#define SAVE_SIGN(a,b) \
"movdqa "b", "a" \n\t"\
"pabsw "b", "b" \n\t"
@@ -212,7 +212,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
SPREADW(MM"1")
"psubusw "MM"1, "MM"4 \n\t"
"packuswb "MM"4, "MM"4 \n\t"
-#if HAVE_SSE2
+#if COMPILE_TEMPLATE_SSE2
"packuswb "MM"4, "MM"4 \n\t"
#endif
"movd "MM"4, %0 \n\t" // *overflow