diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-01 19:16:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-01 19:16:14 +0200 |
commit | 0d83edaba9f4b298fa8a645a032bc84e0c03ef1b (patch) | |
tree | 8f5c2d7efa43c81e37cbce2bb01182ba56a0834a | |
parent | 461030a7ac8e4c563442af44147cf1cef173792f (diff) | |
download | ffmpeg-0d83edaba9f4b298fa8a645a032bc84e0c03ef1b.tar.gz |
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>
-rw-r--r-- | libavcodec/dct-test.c | 2 |
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 } |