[Mplayer-cvslog] CVS: main/libvo aclib_template.c,1.6,1.7
Michael Niedermayer
michael at mplayerhq.hu
Wed Apr 17 20:48:24 CEST 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv13281
Modified Files:
aclib_template.c
Log Message:
pre mmx2/3dnow fix
Index: aclib_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/aclib_template.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- aclib_template.c 13 Feb 2002 00:17:16 -0000 1.6
+++ aclib_template.c 17 Apr 2002 18:48:22 -0000 1.7
@@ -101,15 +101,21 @@
#define MMREG_SIZE 64 //8
#endif
-/* Small defines (for readability only) ;) */
#undef PREFETCH
#undef EMMS
-#ifdef HAVE_K6_2PLUS
-#define PREFETCH "prefetch"
+
+#ifdef HAVE_3DNOW
+#define PREFETCH "prefetch"
+#elif defined ( HAVE_MMX2 )
+#define PREFETCH "prefetchnta"
+#else
+#define PREFETCH "/nop"
+#endif
+
/* On K6 femms is faster of emms. On K7 femms is directly mapped on emms. */
+#ifdef HAVE_3DNOW
#define EMMS "femms"
#else
-#define PREFETCH "prefetchnta"
#define EMMS "emms"
#endif
More information about the MPlayer-cvslog
mailing list