# HG changeset patch # User nick # Date 1004274409 0 # Node ID 8899131fae4da53e330c40d251b115f8bf98cc10 # Parent 6db23dd30242442b17302a343cd6fbf7509bff85 More accurate prefetching diff -r 6db23dd30242 -r 8899131fae4d postproc/rgb2rgb.c --- a/postproc/rgb2rgb.c Sun Oct 28 12:02:16 2001 +0000 +++ b/postproc/rgb2rgb.c Sun Oct 28 13:06:49 2001 +0000 @@ -37,9 +37,7 @@ #ifdef PREFETCH __asm __volatile( PREFETCH" %0\n\t" - PREFETCH" 64%0\n\t" - PREFETCHW" %1\n\t" - PREFETCHW" 64%1\n\t"::"m"(*s),"m"(*dest):"memory"); + ::"m"(*s):"memory"); #endif mm_end = (uint8_t*)((((unsigned long)end)/16)*16); __asm __volatile("movq %0, %%mm7"::"m"(mask32):"memory"); @@ -47,9 +45,8 @@ { #ifdef PREFETCH __asm __volatile( - PREFETCH" 128%0\n\t" - PREFETCHW" 128%1" - ::"m"(*s),"m"(*dest):"memory"); + PREFETCH" 32%0\n\t" + ::"m"(*s):"memory"); #endif __asm __volatile( "movd %1, %%mm0\n\t" diff -r 6db23dd30242 -r 8899131fae4d postproc/rgb2rgb_template.c --- a/postproc/rgb2rgb_template.c Sun Oct 28 12:02:16 2001 +0000 +++ b/postproc/rgb2rgb_template.c Sun Oct 28 13:06:49 2001 +0000 @@ -37,9 +37,7 @@ #ifdef PREFETCH __asm __volatile( PREFETCH" %0\n\t" - PREFETCH" 64%0\n\t" - PREFETCHW" %1\n\t" - PREFETCHW" 64%1\n\t"::"m"(*s),"m"(*dest):"memory"); + ::"m"(*s):"memory"); #endif mm_end = (uint8_t*)((((unsigned long)end)/16)*16); __asm __volatile("movq %0, %%mm7"::"m"(mask32):"memory"); @@ -47,9 +45,8 @@ { #ifdef PREFETCH __asm __volatile( - PREFETCH" 128%0\n\t" - PREFETCHW" 128%1" - ::"m"(*s),"m"(*dest):"memory"); + PREFETCH" 32%0\n\t" + ::"m"(*s):"memory"); #endif __asm __volatile( "movd %1, %%mm0\n\t"