Ticket #1876: mplayer.diff
| File mplayer.diff, 787 bytes (added by , 15 years ago) |
|---|
-
cpudetect.c
45 45 #include <os2.h> 46 46 #elif defined(__AMIGAOS4__) 47 47 #include <proto/exec.h> 48 #elif defined(__sun__) 49 #include <sys/auxv.h> 50 #include <sys/types.h> 48 51 #endif 49 52 50 53 /* Thanks to the FreeBSD project for some of this cpuid code, and … … 174 177 DosUnsetExceptionHandler( &RegRec ); 175 178 mp_msg(MSGT_CPUDETECT,MSGL_V, gCpuCaps.hasSSE ? "yes.\n" : "no!\n" ); 176 179 } 180 #elif defined(__sun__) 181 uint_t ui; 182 (void) getisax(&ui, 1); 183 gCpuCaps.hasSSE = (ui & AV_386_SSE); 184 gCpuCaps.hasSSE2 = (ui & AV_386_SSE2); 177 185 #elif defined(__linux__) 178 186 #if defined(_POSIX_SOURCE) 179 187 struct sigaction saved_sigill;
