[Mplayer-cvslog] CVS: main/libvo fastmemcpy.h,1.8,1.9

GEREOFFY arpi_esp at users.sourceforge.net
Sat Apr 21 23:49:30 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv18688

Modified Files:
	fastmemcpy.h 
Log Message:
16-byte align fix for SSE

Index: fastmemcpy.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/fastmemcpy.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** fastmemcpy.h	2001/04/18 20:44:16	1.8
--- fastmemcpy.h	2001/04/21 21:49:28	1.9
***************
*** 30,33 ****
--- 30,52 ----
  	int i;
  
+         
+ #ifdef HAVE_SSE /* Only P3 (may be Cyrix3) */
+ //        printf("fastmemcpy_pre(0x%X,0x%X,0x%X)\n",to,from,len);
+         // Align dest to 16-byte boundary:
+         if((unsigned int)to&15){
+           int len2=16-((unsigned int)to&15);
+           if(len>len2){
+             len-=len2;
+             __asm__ __volatile__(
+ 	    "rep ; movsb\n"
+ 	    :"=D" (to), "=S" (from)
+             : "D" (to), "S" (from),"c" (len2)
+ 	    : "memory");
+           }
+         }
+ //        printf("fastmemcpy(0x%X,0x%X,0x%X)\n",to,from,len);
+ #endif
+     
+ 
          if(len >= 0x200) /* 512-byte blocks */
  	{


_______________________________________________
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