Move emms_c() from libavcodec to libavutil.

This commit is contained in:
Ronald S. Bultje
2011-05-24 13:04:38 -04:00
parent 7ca5338b49
commit e973557211
2 changed files with 15 additions and 19 deletions

View File

@@ -223,4 +223,18 @@
# define ONLY_IF_THREADS_ENABLED(x) NULL
#endif
#if HAVE_MMX
/**
* Empty mmx state.
* this must be called between any dsp function and float/double code.
* for example sin(); dsp->idct_put(); emms_c(); cos()
*/
static av_always_inline void emms_c(void)
{
__asm__ volatile ("emms" ::: "memory");
}
#else /* HAVE_MMX */
#define emms_c()
#endif /* HAVE_MMX */
#endif /* AVUTIL_INTERNAL_H */