diff -r -u -x '*.o' mythtv-0.19/libs/libmythmpeg2/cpu_accel.c edited-mythtv-0.19/libs/libmythmpeg2/cpu_accel.c
old
|
new
|
|
212 | 212 | |
213 | 213 | accel = 0; |
214 | 214 | #ifdef ACCEL_DETECT |
215 | | #if defined (ARCH_X86) || defined (ARCH_PPC) || defined (ARCH_ALPHA) || defined (ARCH_SPARC) |
| 215 | #if defined (ARCH_X86_64) |
| 216 | accel = MPEG2_ACCEL_X86_MMX|MPEG2_ACCEL_X86_MMXEXT; |
| 217 | #elif defined (ARCH_X86) || defined (ARCH_PPC) || defined (ARCH_ALPHA) || defined (ARCH_SPARC) |
216 | 218 | accel = arch_accel (); |
217 | 219 | #endif |
218 | 220 | #endif |
diff -r -u -x '*.o' mythtv-0.19/libs/libmythsoundtouch/cpu_detect_x86_gcc.cpp edited-mythtv-0.19/libs/libmythsoundtouch/cpu_detect_x86_gcc.cpp
old
|
new
|
|
72 | 72 | /// Checks which instruction set extensions are supported by the CPU. |
73 | 73 | uint detectCPUextensions(void) |
74 | 74 | { |
75 | | #ifndef __i386__ |
| 75 | #if defined(__SSE2__) |
| 76 | // If compiled for x86_64 or an -march that has SSE2. |
| 77 | // The cpu detect code here currently doesn't work on x86_64, |
| 78 | // but x86_64 always has these instructions: |
| 79 | return SUPPORT_SSE2|SUPPORT_SSE|SUPPORT_MMX; |
| 80 | #elif defined(__SSE__) |
| 81 | // If compiled for -march supporting SSE. |
| 82 | return SUPPORT_SSE|SUPPORT_MMX; |
| 83 | #elif ! defined(MMX) |
76 | 84 | return 0; // always disable extensions on non-x86 platforms. |
77 | 85 | #else |
78 | 86 | uint res = 0; |