From 09d06189af3c3d648a33bea1d6a961e6728609a5 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 17 Apr 2002 18:48:22 +0000 Subject: [PATCH] pre mmx2/3dnow fix git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5661 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/aclib_template.c | 14 ++++++++++---- 1 file 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