[Mplayer-cvslog] CVS: main/libvo fastmemcpy.h,1.11,1.12
GEREOFFY
arpi_esp at users.sourceforge.net
Wed May 2 02:29:18 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv20627
Modified Files:
fastmemcpy.h
Log Message:
SSE+2.2.x+SIGILL bug fixed - SSE code disabled...
Index: fastmemcpy.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/fastmemcpy.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** fastmemcpy.h 2001/04/26 20:35:58 1.11
--- fastmemcpy.h 2001/05/02 00:29:16 1.12
***************
*** 5,8 ****
--- 5,15 ----
#include <stddef.h>
+ // Enable this code, if SSE version works (faster) for you!
+ #if 0
+ #ifdef HAVE_SSE
+ #define FASTMEMCPY_SSE
+ #endif
+ #endif
+
/*
This part of code was taken by from Linux-2.4.3 and slightly modified
***************
*** 55,59 ****
#undef HAVE_MMX1
! #if defined(HAVE_MMX) && !defined(HAVE_MMX2) && !defined(HAVE_3DNOW) && !defined(HAVE_SSE)
/* means: mmx v.1. Note: Since we added alignment of destinition it speedups
of memory copying on PentMMX, Celeron-1 and P2 upto 12% versus
--- 62,66 ----
#undef HAVE_MMX1
! #if defined(HAVE_MMX) && !defined(HAVE_MMX2) && !defined(HAVE_3DNOW) && !defined(FASTMEMCPY_SSE)
/* means: mmx v.1. Note: Since we added alignment of destinition it speedups
of memory copying on PentMMX, Celeron-1 and P2 upto 12% versus
***************
*** 83,87 ****
}
! #ifdef HAVE_SSE
#define MMREG_SIZE 16
#else
--- 90,94 ----
}
! #ifdef FASTMEMCPY_SSE
#define MMREG_SIZE 16
#else
***************
*** 142,146 ****
processor's decoders, but it's not always possible.
*/
! #ifdef HAVE_SSE /* Only P3 (may be Cyrix3) */
if(((unsigned long)from) & 15)
/* if SRC is misaligned */
--- 149,153 ----
processor's decoders, but it's not always possible.
*/
! #ifdef FASTMEMCPY_SSE /* Only P3 (may be Cyrix3) */
if(((unsigned long)from) & 15)
/* if SRC is misaligned */
***************
*** 216,220 ****
__asm__ __volatile__ ("sfence":::"memory");
#endif
! #ifndef HAVE_SSE
/* enables to use FPU */
__asm__ __volatile__ (EMMS:::"memory");
--- 223,227 ----
__asm__ __volatile__ ("sfence":::"memory");
#endif
! #ifndef FASTMEMCPY_SSE
/* enables to use FPU */
__asm__ __volatile__ (EMMS:::"memory");
_______________________________________________
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