mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
Use new logic suggested by Michael Niedermayer
K7: Non-MMX stuff total=299997790 Old-MMX stuff: total=159120928 New-MMX stuff: total=80925337 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2844 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
85fdc7beb5
commit
615471a069
@ -73,6 +73,7 @@ void vo_draw_alpha_rgb24(int w,int h, unsigned char* src, unsigned char *srca, i
|
||||
"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 @@ PROFILE_START();
|
||||
"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"
|
||||
|
@ -73,6 +73,7 @@ void vo_draw_alpha_rgb24(int w,int h, unsigned char* src, unsigned char *srca, i
|
||||
"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 @@ PROFILE_START();
|
||||
"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"
|
||||
|
Loading…
Reference in New Issue
Block a user