[Mplayer-cvslog] CVS: main/mp3lib d_cpu.s,1.1.1.1,1.2

Nick Kurshev nickols_k at users.sourceforge.net
Wed May 9 09:54:58 CEST 2001


Update of /cvsroot/mplayer/main/mp3lib
In directory usw-pr-cvs1:/tmp/cvs-serv2112/main/mp3lib

Modified Files:
	d_cpu.s 
Log Message:
K7 3dnow-dsp detection

Index: d_cpu.s
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/d_cpu.s,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** d_cpu.s	2001/02/24 20:31:08	1.1.1.1
--- d_cpu.s	2001/05/09 07:54:56	1.2
***************
*** 1,6 ****
  
  / ---------------------------------------------------------------------------
! /  Cpu function detect by Pontscho/fresh!mindworkz
! /   (c) 2000 - 2000
  / ---------------------------------------------------------------------------
  
--- 1,6 ----
  
  / ---------------------------------------------------------------------------
! /  Cpu function detect by Pontscho/fresh!mindworkz (c) 2000 - 2000
! /  3dnow-dsp detection by Nick Kurshev (C) 2001
  / ---------------------------------------------------------------------------
  
***************
*** 63,67 ****
  / ---------------------------------------------------------------------------
  /  in C: unsigned long a3dnow( void );
! /   return: 0 if this processor not requiment 3dnow! else above 1.
  / ---------------------------------------------------------------------------
  a3dnow:
--- 63,69 ----
  / ---------------------------------------------------------------------------
  /  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
  / ---------------------------------------------------------------------------
  a3dnow:
***************
*** 72,90 ****
  
          call   ipentium
!         shrl   $1,%eax
!         jnc    no_3dnow
  
          movl   $0x80000000,%eax
          cpuid
          cmpl   $0x80000000,%eax
!         jbe    no_3dnow
          movl   $0x80000001,%eax
          cpuid
-         testl  $0x80000000,%edx
-         jz     no_3dnow
-         movl   $1,%eax
-         jmp    exit2
- no_3dnow:
          xorl   %eax,%eax
  exit2:
  
--- 74,95 ----
  
          call   ipentium
!         testl  %eax,%eax
!         jz     exit2
  
          movl   $0x80000000,%eax
          cpuid
          cmpl   $0x80000000,%eax
!         jbe    exit2
          movl   $0x80000001,%eax
          cpuid
          xorl   %eax,%eax
+         testl  $0x80000000,%edx
+         jz     exit2
+ /// eax=1 - K6 3DNow!
+         inc    %eax
+         testl  $0x40000000,%edx
+         jz     exit2
+ /// eax=2 - K7 3DNowEx!	
+         inc    %eax
  exit2:
  


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list