Browse Source

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>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
0d83edaba9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dct-test.c

+ 1
- 1
libavcodec/dct-test.c View File

@@ -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