diff dsputil.h @ 8104:0d108ec85620 libavcodec

Remove duplicated MM_* macros for CPU capabilities from dsputil.h. Add missing one for FF_MM_ALTIVEC to avcodec.h. Rename all the occurences of MM_* to the corresponding FF_MM_*.
author rathann
date Mon, 03 Nov 2008 18:08:00 +0000
parents eebc7209c47f
children 520a6e56b8c0
line wrap: on
line diff
--- a/dsputil.h	Sun Nov 02 21:51:27 2008 +0000
+++ b/dsputil.h	Mon Nov 03 18:08:00 2008 +0000
@@ -562,15 +562,6 @@
 
 #undef emms_c
 
-#define MM_MMX    0x0001 /* standard MMX */
-#define MM_3DNOW  0x0004 /* AMD 3DNOW */
-#define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */
-#define MM_SSE    0x0008 /* SSE functions */
-#define MM_SSE2   0x0010 /* PIV SSE2 functions */
-#define MM_3DNOWEXT  0x0020 /* AMD 3DNowExt */
-#define MM_SSE3   0x0040 /* Prescott SSE3 functions */
-#define MM_SSSE3  0x0080 /* Conroe SSSE3 functions */
-
 extern int mm_flags;
 
 void add_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
@@ -585,7 +576,7 @@
 
 #define emms_c() \
 {\
-    if (mm_flags & MM_MMX)\
+    if (mm_flags & FF_MM_MMX)\
         emms();\
 }
 
@@ -593,8 +584,6 @@
 
 #elif defined(ARCH_ARMV4L)
 
-#define MM_IWMMXT    0x0100 /* XScale IWMMXT */
-
 extern int mm_flags;
 
 #ifdef HAVE_NEON
@@ -604,8 +593,6 @@
 
 #elif defined(ARCH_POWERPC)
 
-#define MM_ALTIVEC    0x0001 /* standard AltiVec */
-
 extern int mm_flags;
 
 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v)