Ticket #2141: mplayer.patch
| File mplayer.patch, 1.5 KB (added by , 13 years ago) |
|---|
-
cpudetect.c
56 56 #if CONFIG_RUNTIME_CPUDETECT 57 57 /* I believe this code works. However, it has only been used on a PII and PIII */ 58 58 59 #if defined(__linux__) && defined(_POSIX_SOURCE) &&!ARCH_X86_6459 #if defined(__linux__) && !ARCH_X86_64 60 60 static void sigill_handler_sse( int signal, struct sigcontext sc ) 61 61 { 62 62 mp_msg(MSGT_CPUDETECT,MSGL_V, "SIGILL, " ); … … 75 75 76 76 gCpuCaps.hasSSE=0; 77 77 } 78 #endif /* __linux__ && _POSIX_SOURCE*/78 #endif /* __linux__ */ 79 79 80 80 #if (defined(__MINGW32__) || defined(__CYGWIN__)) && !ARCH_X86_64 81 81 LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep) … … 177 177 mp_msg(MSGT_CPUDETECT,MSGL_V, gCpuCaps.hasSSE ? "yes.\n" : "no!\n" ); 178 178 } 179 179 #elif defined(__linux__) 180 #if defined(_POSIX_SOURCE)181 180 struct sigaction saved_sigill; 182 181 183 182 /* Save the original signal handlers. … … 210 209 */ 211 210 mp_msg(MSGT_CPUDETECT,MSGL_V, "Tests of OS support for SSE %s\n", gCpuCaps.hasSSE ? "passed." : "failed!" ); 212 211 #else 213 /* We can't use POSIX signal handling to test the availability of214 * SSE, so we disable it by default.215 */216 mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, disabling to be safe.\n" );217 gCpuCaps.hasSSE=0;218 #endif /* _POSIX_SOURCE */219 #else220 212 /* Do nothing on other platforms for now. 221 213 */ 222 214 mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, leaving disabled.\n" );
