1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3137 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2001-11-26 02:20:51 +00:00
parent bd1cda3d8c
commit 32646569d9
2 changed files with 28 additions and 1 deletions

View File

@ -9,7 +9,6 @@
#include <string.h>
#include "../config.h"
#include "swscale.h"
#include "../mmx_defs.h"
#include "../cpudetect.h"
#undef MOVNTQ
#undef PAVGB

View File

@ -7,6 +7,34 @@
#undef MOVNTQ
#undef PAVGB
#undef PREFETCH
#undef PREFETCHW
#undef EMMS
#undef SFENCE
#ifdef HAVE_3DNOW
/* On K6 femms is faster of emms. On K7 femms is directly mapped on emms. */
#define EMMS "femms"
#else
#define EMMS "emms"
#endif
#ifdef HAVE_3DNOW
#define PREFETCH "prefetch"
#define PREFETCHW "prefetchw"
#elif defined ( HAVE_MMX2 )
#define PREFETCH "prefetchnta"
#define PREFETCHW "prefetcht0"
#else
#define PREFETCH "/nop"
#define PREFETCHW "/nop"
#endif
#ifdef HAVE_MMX2
#define SFENCE "sfence"
#else
#define SFENCE "/nop"
#endif
#ifdef HAVE_MMX2
#define PAVGB(a,b) "pavgb " #a ", " #b " \n\t"