changeset 5660:4dcc7af65eec

pre mmx2/3dnow fix
author michael
date Wed, 17 Apr 2002 18:48:22 +0000
parents b17666766389
children 42e002c565cf
files libvo/aclib_template.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/aclib_template.c	Wed Apr 17 18:37:11 2002 +0000
+++ b/libvo/aclib_template.c	Wed Apr 17 18:48:22 2002 +0000
@@ -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