aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dct-test.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-01 19:16:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-01 19:16:14 +0200
commit0d83edaba9f4b298fa8a645a032bc84e0c03ef1b (patch)
tree8f5c2d7efa43c81e37cbce2bb01182ba56a0834a /libavcodec/dct-test.c
parent461030a7ac8e4c563442af44147cf1cef173792f (diff)
downloadandroid_external_ffmpeg-0d83edaba9f4b298fa8a645a032bc84e0c03ef1b.tar.gz
android_external_ffmpeg-0d83edaba9f4b298fa8a645a032bc84e0c03ef1b.tar.bz2
android_external_ffmpeg-0d83edaba9f4b298fa8a645a032bc84e0c03ef1b.zip
dct-test: give emms a memory clober.
Without this, the compiler in theory could attempt to keep things in float registers across the emms which would cause bad things to happen. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r--libavcodec/dct-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index f85bccb420..c75202ab75 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -204,7 +204,7 @@ static inline void mmx_emms(void)
{
#if HAVE_MMX
if (cpu_flags & AV_CPU_FLAG_MMX)
- __asm__ volatile ("emms\n\t");
+ __asm__ volatile ("emms\n\t" ::: "memory");
#endif
}