[FFmpeg-cvslog] dct-test: give emms a memory clober.
Michael Niedermayer
git at videolan.org
Fri Jun 1 19:47:32 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 1 19:16:14 2012 +0200| [0d83edaba9f4b298fa8a645a032bc84e0c03ef1b] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d83edaba9f4b298fa8a645a032bc84e0c03ef1b
---
libavcodec/dct-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index f85bccb..c75202a 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
}
More information about the ffmpeg-cvslog
mailing list