Mercurial > mplayer.hg
comparison mplayer.c @ 2272:c26a9eff0993
cpu detection fixed
author | arpi |
---|---|
date | Fri, 19 Oct 2001 02:00:45 +0000 |
parents | 8826be64fdbf |
children | d0e1c32ad432 |
comparison
equal
deleted
inserted
replaced
2271:a8d57bbc4413 | 2272:c26a9eff0993 |
---|---|
63 | 63 |
64 #include "linux/getch2.h" | 64 #include "linux/getch2.h" |
65 #include "linux/keycodes.h" | 65 #include "linux/keycodes.h" |
66 #include "linux/timer.h" | 66 #include "linux/timer.h" |
67 #include "linux/shmem.h" | 67 #include "linux/shmem.h" |
68 | |
69 #include "cpudetect.h" | |
68 | 70 |
69 #ifdef HAVE_LIRC | 71 #ifdef HAVE_LIRC |
70 #include "lirc_mp.h" | 72 #include "lirc_mp.h" |
71 #endif | 73 #endif |
72 | 74 |
469 int gui_no_filename=0; | 471 int gui_no_filename=0; |
470 | 472 |
471 mp_msg_init(MSGL_STATUS); | 473 mp_msg_init(MSGL_STATUS); |
472 | 474 |
473 mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text); | 475 mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text); |
476 | |
477 /* Test for cpu capabilities (and corresponding OS support) for optimizing */ | |
478 #ifdef ARCH_X86 | |
479 GetCpuCaps(&gCpuCaps); | |
480 mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags: Type: %d MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n", | |
481 gCpuCaps.cpuType,gCpuCaps.hasMMX,gCpuCaps.hasMMX2, | |
482 gCpuCaps.has3DNow, gCpuCaps.has3DNowExt, | |
483 gCpuCaps.hasSSE, gCpuCaps.hasSSE2); | |
484 #endif | |
474 | 485 |
475 // this one segfaults if running 'mplayer' (without path containing '/') | 486 // this one segfaults if running 'mplayer' (without path containing '/') |
476 // if ( !strcmp( strrchr( argv[0],'/' ),"/gmplayer" ) ) appInit( argc,argv,envp ); | 487 // if ( !strcmp( strrchr( argv[0],'/' ),"/gmplayer" ) ) appInit( argc,argv,envp ); |
477 if ( argv[0] ) | 488 if ( argv[0] ) |
478 if(!strcmp(argv[0],"gmplayer") || | 489 if(!strcmp(argv[0],"gmplayer") || |