diff options
author | wm4 <wm4@nowhere> | 2012-07-29 17:31:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-07-30 01:38:14 +0200 |
commit | 43da1e78c40ba4f948bfe20536ccc18b2f25c8f7 (patch) | |
tree | e92a83bd2f1aeb0945092dbe24540c9eba84ca94 /libmpcodecs/vf_tfields.c | |
parent | 74df1d8e05aa226c7e82a6d84f43c873ee234561 (diff) | |
download | mpv-43da1e78c40ba4f948bfe20536ccc18b2f25c8f7.tar.bz2 mpv-43da1e78c40ba4f948bfe20536ccc18b2f25c8f7.tar.xz |
Rip out 3DNOW support
Ancient AMD specific enhancement to the MMX instruction set. Officually
discontinued by AMD.
Note that support for this was already disabled in the previous commit.
This commit removes the actual code.
Diffstat (limited to 'libmpcodecs/vf_tfields.c')
-rw-r--r-- | libmpcodecs/vf_tfields.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libmpcodecs/vf_tfields.c b/libmpcodecs/vf_tfields.c index 4823ef463c..b4fa7a46bf 100644 --- a/libmpcodecs/vf_tfields.c +++ b/libmpcodecs/vf_tfields.c @@ -71,42 +71,6 @@ static void deint(unsigned char *dest, int ds, unsigned char *src, int ss, int w fast_memcpy(dest, src, w); } -#if HAVE_AMD3DNOW -static void qpel_li_3DNOW(unsigned char *d, unsigned char *s, int w, int h, int ds, int ss, int up) -{ - int i, j, ssd=ss; - long crap1, crap2; - if (up) { - ssd = -ss; - fast_memcpy(d, s, w); - d += ds; - s += ss; - } - for (i=h-1; i; i--) { - __asm__ volatile( - "1: \n\t" - "movq (%%"REG_S"), %%mm0 \n\t" - "movq (%%"REG_S",%%"REG_a"), %%mm1 \n\t" - "pavgusb %%mm0, %%mm1 \n\t" - "add $8, %%"REG_S" \n\t" - "pavgusb %%mm0, %%mm1 \n\t" - "movq %%mm1, (%%"REG_D") \n\t" - "add $8, %%"REG_D" \n\t" - "decl %%ecx \n\t" - "jnz 1b \n\t" - : "=S"(crap1), "=D"(crap2) - : "c"(w>>3), "S"(s), "D"(d), "a"((long)ssd) - ); - for (j=w-(w&7); j<w; j++) - d[j] = (s[j+ssd] + 3*s[j])>>2; - d += ds; - s += ss; - } - if (!up) fast_memcpy(d, s, w); - __asm__ volatile("emms \n\t" : : : "memory"); -} -#endif - #if HAVE_MMX2 static void qpel_li_MMX2(unsigned char *d, unsigned char *s, int w, int h, int ds, int ss, int up) { @@ -499,9 +463,6 @@ static int vf_open(vf_instance_t *vf, char *args) #if HAVE_MMX2 if(gCpuCaps.hasMMX2) qpel_li = qpel_li_MMX2; #endif -#if HAVE_AMD3DNOW - if(gCpuCaps.has3DNow) qpel_li = qpel_li_3DNOW; -#endif return 1; } |