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>
This commit is contained in:
Michael Niedermayer 2012-06-01 19:16:14 +02:00
parent 461030a7ac
commit 0d83edaba9
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ static inline void mmx_emms(void)
{ {
#if HAVE_MMX #if HAVE_MMX
if (cpu_flags & AV_CPU_FLAG_MMX) if (cpu_flags & AV_CPU_FLAG_MMX)
__asm__ volatile ("emms\n\t"); __asm__ volatile ("emms\n\t" ::: "memory");
#endif #endif
} }