Mercurial > mplayer.hg
changeset 2843:5be2017077fb
Use new logic suggested by Michael Niedermayer
K7:
Non-MMX stuff
total=299997790
Old-MMX stuff:
total=159120928
New-MMX stuff:
total=80925337
author | nick |
---|---|
date | Sun, 11 Nov 2001 17:14:57 +0000 |
parents | aebdcb39cadb |
children | 5bbf7a829280 |
files | libvo/osd.c libvo/osd_template.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/osd.c Sun Nov 11 16:29:26 2001 +0000 +++ b/libvo/osd.c Sun Nov 11 17:14:57 2001 +0000 @@ -73,6 +73,7 @@ "pcmpeqb %%mm6, %%mm6\n\t" // F..F ::"m"(*dst),"m"(*srca),"m"(*src):"memory"); for(x=0;x<w;x+=2){ + if(srca[x] || srca[x+1]) asm volatile( PREFETCHW" 32%0\n\t" PREFETCH" 32%1\n\t" @@ -174,6 +175,7 @@ "pcmpeqb %%mm6, %%mm6\n\t" // F..F ::"m"(*dstbase),"m"(*srca),"m"(*src):"memory"); for(x=0;x<w;x+=2){ + if(srca[x] || srca[x+1]) asm volatile( PREFETCHW" 32%0\n\t" PREFETCH" 32%1\n\t"
--- a/libvo/osd_template.c Sun Nov 11 16:29:26 2001 +0000 +++ b/libvo/osd_template.c Sun Nov 11 17:14:57 2001 +0000 @@ -73,6 +73,7 @@ "pcmpeqb %%mm6, %%mm6\n\t" // F..F ::"m"(*dst),"m"(*srca),"m"(*src):"memory"); for(x=0;x<w;x+=2){ + if(srca[x] || srca[x+1]) asm volatile( PREFETCHW" 32%0\n\t" PREFETCH" 32%1\n\t" @@ -174,6 +175,7 @@ "pcmpeqb %%mm6, %%mm6\n\t" // F..F ::"m"(*dstbase),"m"(*srca),"m"(*src):"memory"); for(x=0;x<w;x+=2){ + if(srca[x] || srca[x+1]) asm volatile( PREFETCHW" 32%0\n\t" PREFETCH" 32%1\n\t"