1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

pre mmx2/3dnow fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5661 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2002-04-17 18:48:22 +00:00
parent b3eb57b605
commit 09d06189af

View File

@ -101,15 +101,21 @@ __asm__ __volatile__(\
#define MMREG_SIZE 64 //8 #define MMREG_SIZE 64 //8
#endif #endif
/* Small defines (for readability only) ;) */
#undef PREFETCH #undef PREFETCH
#undef EMMS #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. */ /* On K6 femms is faster of emms. On K7 femms is directly mapped on emms. */
#ifdef HAVE_3DNOW
#define EMMS "femms" #define EMMS "femms"
#else #else
#define PREFETCH "prefetchnta"
#define EMMS "emms" #define EMMS "emms"
#endif #endif