[FFmpeg-devel] [PATCH] Unconditionally run emms on calls to emms_c() if HAVE_MMX is defined

Eli Friedman eli.friedman
Sun Jul 4 08:50:27 CEST 2010


Patch attached.  We already assume HAVE_MMX implies MMX is available
at runtime, so this seems like it should be OK.

-Eli
-------------- next part --------------
Index: libavcodec/dsputil.h
===================================================================
--- libavcodec/dsputil.h	(revision 24018)
+++ libavcodec/dsputil.h	(working copy)
@@ -658,11 +658,7 @@
 }
 
 
-#define emms_c() \
-{\
-    if (mm_flags & FF_MM_MMX)\
-        emms();\
-}
+#define emms_c() emms()
 
 #elif ARCH_ARM
 



More information about the ffmpeg-devel mailing list