mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
Minor fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1254 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
88b616ade5
commit
183da5e693
@ -48,7 +48,7 @@ exit_cpudetect:
|
||||
/ in C: unsigled long ipentium( void );
|
||||
/ return: 0 if this processor i386 or i486
|
||||
/ 1 otherwise
|
||||
/ 2 if this cpu supports mmx
|
||||
/ 3 if this cpu supports mmx
|
||||
/ ---------------------------------------------------------------------------
|
||||
ipentium:
|
||||
pushl %ebx
|
||||
@ -74,7 +74,7 @@ ipentium:
|
||||
incl %eax
|
||||
test $0x00800000, %edx
|
||||
jz exit
|
||||
incl %eax
|
||||
orl $2, %eax
|
||||
jmp exit
|
||||
no_cpuid:
|
||||
xorl %eax,%eax
|
||||
@ -88,7 +88,7 @@ exit:
|
||||
/ in C: unsigned long a3dnow( void );
|
||||
/ return: 0 if this processor does not support 3dnow!
|
||||
/ 1 otherwise
|
||||
/ 2 if this cpu supports 3dnow-dsp extension
|
||||
/ 3 if this cpu supports 3dnow-dsp extension
|
||||
/ ---------------------------------------------------------------------------
|
||||
a3dnow:
|
||||
pushl %ebx
|
||||
@ -114,7 +114,7 @@ a3dnow:
|
||||
testl $0x40000000,%edx
|
||||
jz exit2
|
||||
/// eax=2 - K7 3DNowEx!
|
||||
inc %eax
|
||||
orl $2, %eax
|
||||
exit2:
|
||||
|
||||
popl %ecx
|
||||
@ -126,7 +126,7 @@ exit2:
|
||||
/ in C: unsigned long isse( void );
|
||||
/ return: 0 if this processor does not support sse
|
||||
/ 1 otherwise
|
||||
/ 2 if this cpu supports sse2 extension
|
||||
/ 3 if this cpu supports sse2 extension
|
||||
/ ---------------------------------------------------------------------------
|
||||
isse:
|
||||
pushl %ebx
|
||||
@ -145,7 +145,7 @@ isse:
|
||||
incl %eax
|
||||
testl $0x04000000,%edx
|
||||
jz exit3
|
||||
incl %eax
|
||||
orl $2, %eax
|
||||
exit3:
|
||||
popl %ecx
|
||||
popl %edx
|
||||
|
@ -355,6 +355,7 @@ void MP3_Init(int fakemono){
|
||||
#else
|
||||
void MP3_Init(){
|
||||
#endif
|
||||
#ifdef ARCH_X86
|
||||
_CpuID=CpuDetect();
|
||||
_i586=ipentium();
|
||||
#ifndef HAVE_MMX
|
||||
@ -384,11 +385,15 @@ void MP3_Init(){
|
||||
Note: It's ok, Since K8 will have SSE2 support and will much faster
|
||||
of P4 ;)
|
||||
*/
|
||||
printf( "mp3lib: Using SSE%s! optimized decore.\n",(_isse>1?"2":""));
|
||||
// printf( "mp3lib: Using SSE%s! optimized decore.\n",(_isse>1?"2":""));
|
||||
printf( "mp3lib: Using Pentium%s optimized decore.\n",(_i586>1?"-MMX":""));
|
||||
else
|
||||
if(_3dnow)
|
||||
printf( "mp3lib: Using AMD 3dnow%s! optimized decore.\n",(_3dnow>1?"-dsp(k7)":""));
|
||||
|
||||
#else
|
||||
_CpuID = _i586 = _3dnow = _isse = _has_mmx = 0;
|
||||
printf( "mp3lib: Using generic decore.\n");
|
||||
#endif
|
||||
/* Use it for any MMX cpu */
|
||||
if(_has_mmx) make_decode_tables_MMX(outscale);
|
||||
else make_decode_tables(outscale);
|
||||
|
Loading…
Reference in New Issue
Block a user