mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
Check for HAVE_EBX_AVAILABLE before enabling MMX code that needs the EBX register.
Makes things a bit simpler for everyone who insists on compiling MPlayer as PIE-code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28942 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f9f40364d7
commit
1f1b999cb9
@ -19,7 +19,7 @@ struct vf_priv_s {
|
||||
int max, last, cnt;
|
||||
};
|
||||
|
||||
#if HAVE_MMX
|
||||
#if HAVE_MMX && HAVE_EBX_AVAILABLE
|
||||
static int diff_MMX(unsigned char *old, unsigned char *new, int os, int ns)
|
||||
{
|
||||
volatile short out[4];
|
||||
@ -164,7 +164,7 @@ static int open(vf_instance_t *vf, char* args)
|
||||
p->frac = 0.33;
|
||||
if (args) sscanf(args, "%d:%d:%d:%f", &p->max, &p->hi, &p->lo, &p->frac);
|
||||
diff = diff_C;
|
||||
#if HAVE_MMX
|
||||
#if HAVE_MMX && HAVE_EBX_AVAILABLE
|
||||
if(gCpuCaps.hasMMX) diff = diff_MMX;
|
||||
#endif
|
||||
return 1;
|
||||
|
@ -33,7 +33,7 @@ struct vf_priv_s
|
||||
* diff_MMX and diff_C stolen from vf_decimate.c
|
||||
*/
|
||||
|
||||
#if HAVE_MMX
|
||||
#if HAVE_MMX && HAVE_EBX_AVAILABLE
|
||||
static int diff_MMX(unsigned char *old, unsigned char *new, int os, int ns)
|
||||
{
|
||||
volatile short out[4];
|
||||
@ -683,7 +683,7 @@ static int open(vf_instance_t *vf, char* args)
|
||||
goto nomem;
|
||||
|
||||
diff = diff_C;
|
||||
#if HAVE_MMX
|
||||
#if HAVE_MMX && HAVE_EBX_AVAILABLE
|
||||
if(gCpuCaps.hasMMX) diff = diff_MMX;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user