From 151193603402aa2dde105c342b658696ccb441b0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 26 Feb 2011 22:51:56 +0100 Subject: =?UTF-8?q?Correctly=20implement:=20=09commit=20c0ec9918b066c6bfca?= =?UTF-8?q?8613ac75b589bd3e405971=20=09Author:=20M=C3=A5ns=20Rullg=C3=A5rd?= =?UTF-8?q?=20=20=09Date:=20=20=20Tue=20Aug=2024=2017:47:0?= =?UTF-8?q?5=202010=20+0000=20=09Remove=20global=20mm=5Fflags=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 24909 to svn://svn.ffmpeg.org/ffmpeg/trunk Signed-off-by: Michael Niedermayer --- libavcodec/dsputil.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavcodec/dsputil.h') diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 4f1f650dc8..5c2a9fe098 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -637,7 +637,11 @@ static inline void emms(void) __asm__ volatile ("emms;":::"memory"); } -#define emms_c() emms() +#define emms_c() \ +{\ + if(av_get_cpu_flags() & AV_CPU_FLAG_MMX)\ + emms();\ +} #elif ARCH_ARM -- cgit v1.2.1