diff options
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -66,6 +66,8 @@ void* mDisplay; // Display* mDisplay; #include "linux/timer.h" #include "linux/shmem.h" +#include "cpudetect.h" + #ifdef HAVE_LIRC #include "lirc_mp.h" #endif @@ -472,6 +474,15 @@ int gui_no_filename=0; mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text); + /* Test for cpu capabilities (and corresponding OS support) for optimizing */ +#ifdef ARCH_X86 + GetCpuCaps(&gCpuCaps); + mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags: Type: %d MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n", + gCpuCaps.cpuType,gCpuCaps.hasMMX,gCpuCaps.hasMMX2, + gCpuCaps.has3DNow, gCpuCaps.has3DNowExt, + gCpuCaps.hasSSE, gCpuCaps.hasSSE2); +#endif + // this one segfaults if running 'mplayer' (without path containing '/') // if ( !strcmp( strrchr( argv[0],'/' ),"/gmplayer" ) ) appInit( argc,argv,envp ); if ( argv[0] ) |