summaryrefslogtreecommitdiffstats
path: root/libvo/aclib_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/aclib_template.c')
-rw-r--r--libvo/aclib_template.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/libvo/aclib_template.c b/libvo/aclib_template.c
index 5ce2fcbb2c..68c2b8f48f 100644
--- a/libvo/aclib_template.c
+++ b/libvo/aclib_template.c
@@ -101,15 +101,21 @@ __asm__ __volatile__(\
#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