Commit 0d83edab authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 461030a7
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment