[MPlayer-cvslog] r19367 - trunk/libswscale/rgb2rgb.c

diego subversion at mplayerhq.hu
Fri Aug 11 14:50:14 CEST 2006


Author: diego
Date: Fri Aug 11 14:50:14 2006
New Revision: 19367

Modified:
   trunk/libswscale/rgb2rgb.c

Log:
Fix compilation with MMX disabled, the mmx_null and mmx_one constants don't need to
be protected by HAVE_MMX.


Modified: trunk/libswscale/rgb2rgb.c
==============================================================================
--- trunk/libswscale/rgb2rgb.c	(original)
+++ trunk/libswscale/rgb2rgb.c	Fri Aug 11 14:50:14 2006
@@ -72,11 +72,9 @@
 			long srcStride1, long srcStride2,
 			long srcStride3, long dstStride);
 
-#if defined(HAVE_MMX)
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
 static const uint64_t mmx_null  __attribute__((aligned(8))) = 0x0000000000000000ULL;
 static const uint64_t mmx_one   __attribute__((aligned(8))) = 0xFFFFFFFFFFFFFFFFULL;
-#endif
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
 static const uint64_t mask32b  attribute_used __attribute__((aligned(8))) = 0x000000FF000000FFULL;
 static const uint64_t mask32g  attribute_used __attribute__((aligned(8))) = 0x0000FF000000FF00ULL;
 static const uint64_t mask32r  attribute_used __attribute__((aligned(8))) = 0x00FF000000FF0000ULL;



More information about the MPlayer-cvslog mailing list