From 0d83edaba9f4b298fa8a645a032bc84e0c03ef1b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Jun 2012 19:16:14 +0200 Subject: [PATCH] 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 --- libavcodec/dct-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index f85bccb420..c75202ab75 100644 --- a/libavcodec/dct-test.c +++ b/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 }