# HG changeset patch # User Diego 'Flameeyes' Pettenò <[EMAIL PROTECTED]> # Date 1181391880 -7200 # Node ID 3ec6fc2bc7afec83a012e344bbb2797f08fabff8 # Parent 3012d0fcf927aa1e816b08f7940e154bf43f71ed Consider MMXEXT enabled on x86-64, and disabled for architectures not-x86.
diff -r 3ec6fc2bc7afec83a012e344bbb2797f08fabff8 -r 3012d0fcf927aa1e816b08f7940e154bf43f71ed src/xine-utils/cpu_accel.h --- a/src/xine-utils/cpu_accel.h Sat Jun 09 14:24:40 2007 +0200 +++ b/src/xine-utils/cpu_accel.h Sat Jun 09 14:17:30 2007 +0200 @@ -87,6 +87,12 @@ uint32_t xine_mm_accel (void) XINE_PROTE # define CHECK_SSE 0 #endif +#ifdef __x86_64__ +# define CHECK_MMXEXT 1 +#elif !defined(__i386__) +# define CHECK_MMXEXT 0 +#endif + #else # define CHECK_MMX (xine_mm_accel() & MM_ACCEL_X86_MMX) @@ -106,7 +112,9 @@ uint32_t xine_mm_accel (void) XINE_PROTE # define CHECK_MLIB 0 #endif -/* This is not bound to a compiler define. */ +/* This is not bound to a compiler define, but it is present on AMD64 */ +#if !defined(CHECK_MMXEXT) # define CHECK_MMXEXT (xine_mm_accel() & MM_ACCEL_X86_MMXEXT) +#endif #endif ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Xine-cvslog mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xine-cvslog
