[PD-cvs] pd/src m_simd_sse_vc.c,1.1.2.2,1.1.2.3 m_simd_sse_vc.h,1.1.2.4,1.1.2.5

Tim Blechmann timblech at users.sourceforge.net
Tue Aug 31 11:24:29 CEST 2004


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14948

Modified Files:
      Tag: devel_0_37
	m_simd_sse_vc.c m_simd_sse_vc.h 
Log Message:


Index: m_simd_sse_vc.h
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/m_simd_sse_vc.h,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -d -r1.1.2.4 -r1.1.2.5
*** m_simd_sse_vc.h	30 Aug 2004 19:56:30 -0000	1.1.2.4
--- m_simd_sse_vc.h	31 Aug 2004 09:24:26 -0000	1.1.2.5
***************
*** 63,72 ****
  
  /* TB: runtime check */
! t_int simd_runtime_check()
! {
!     unsigned int eax, edx;
!     __asm__("cpuid" : "=a"(eax),"=d"(edx) : "a" (1): "bx", "cx");
!     return (0x2000000 & edx);
! }
  
  
--- 63,67 ----
  
  /* TB: runtime check */
! t_int simd_runtime_check();
  
  

Index: m_simd_sse_vc.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/m_simd_sse_vc.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** m_simd_sse_vc.c	30 Aug 2004 19:56:30 -0000	1.1.2.2
--- m_simd_sse_vc.c	31 Aug 2004 09:24:26 -0000	1.1.2.3
***************
*** 728,738 ****
  t_int simd_runtime_check()
  {
!     unsigned int edx;
      __asm
  	{
! 	    cpuid
! 	    mov [edx],edx     
  	}
!     return (0x2000000 & edx);
  }
  
--- 728,740 ----
  t_int simd_runtime_check()
  {
!     unsigned int redx;
      __asm
  	{
! 		mov		eax, 1
! 		cpuid
! 	    mov		[redx],edx     
  	}
! 	post("%x",0x2000000 &redx);
!     return (0x2000000 & redx);
  }
  





More information about the Pd-cvs mailing list