2009-06-05 02:00:21 -07:00
|
|
|
diff --git a/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c b/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c
|
|
|
|
--- a/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c
|
|
|
|
+++ b/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c
|
2009-09-23 21:22:23 -07:00
|
|
|
@@ -174,17 +174,17 @@ YUV_CONVERT(yuv444_to_argb_vanilla, CONV
|
|
|
|
* macros as there's no way e.g. we could compile a x86 asm code
|
|
|
|
* on a ppc machine and vica-versa
|
|
|
|
*/
|
|
|
|
#if defined(i386) || defined(__x86__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_AMD64)
|
|
|
|
#if !defined(_M_AMD64)
|
|
|
|
#define ENABLE_MMX
|
|
|
|
#endif
|
|
|
|
#include "x86/oggplay_yuv2rgb_x86.c"
|
2009-06-05 02:00:21 -07:00
|
|
|
-#if defined(ATTRIBUTE_ALIGNED_MAX) && ATTRIBUTE_ALIGNED_MAX >= 16
|
2009-09-23 21:22:23 -07:00
|
|
|
+#if defined(_MSC_VER) || defined(ATTRIBUTE_ALIGNED_MAX) && ATTRIBUTE_ALIGNED_MAX >= 16
|
|
|
|
#define ENABLE_SSE2
|
|
|
|
#endif
|
|
|
|
#elif defined(__ppc__) || defined(__ppc64__)
|
|
|
|
#define ENABLE_ALTIVEC
|
|
|
|
//altivec intristics only working with -maltivec gcc flag,
|
|
|
|
//but we want runtime altivec detection, hence this has to be
|
|
|
|
//fixed!
|
|
|
|
//#include "oggplay_yuv2rgb_altivec.c"
|