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>
pull/59/head
Michael Niedermayer 13 years ago
parent 461030a7ac
commit 0d83edaba9
  1. 2
      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
}

Loading…
Cancel
Save