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:
parent
b3eb57b605
commit
09d06189af
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user