diff dsputil.h @ 12414:3fc4c625b6f3 libavcodec

Remove global mm_flags variable
author mru
date Tue, 24 Aug 2010 17:47:05 +0000
parents 1241c824de46
children 9f06475db098
line wrap: on
line diff
--- a/dsputil.h	Tue Aug 24 16:52:27 2010 +0000
+++ b/dsputil.h	Tue Aug 24 17:47:05 2010 +0000
@@ -618,7 +618,6 @@
 /* should be defined by architectures supporting
    one or more MultiMedia extension */
 int mm_support(void);
-extern int mm_flags;
 
 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx);
 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx);
@@ -647,12 +646,7 @@
     __asm__ volatile ("emms;":::"memory");
 }
 
-
-#define emms_c() \
-{\
-    if (mm_flags & FF_MM_MMX)\
-        emms();\
-}
+#define emms_c() emms()
 
 #elif ARCH_ARM
 
@@ -670,7 +664,6 @@
 
 #else
 
-#define mm_flags 0
 #define mm_support() 0
 
 #endif