diff options
author | Nick Kurshev <nickols_k@mail.ru> | 2001-10-28 13:06:49 +0000 |
---|---|---|
committer | Nick Kurshev <nickols_k@mail.ru> | 2001-10-28 13:06:49 +0000 |
commit | 18224bc9bee6f78c38337cc51ec6c484241e7cdb (patch) | |
tree | 298135233f9a64e070888844f0dd94548b4feee1 /postproc | |
parent | 96b956cc464587ec03ff5dbe3031770c11d2a35b (diff) | |
download | ffmpeg-18224bc9bee6f78c38337cc51ec6c484241e7cdb.tar.gz |
More accurate prefetching
Originally committed as revision 2513 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/rgb2rgb.c | 9 | ||||
-rw-r--r-- | postproc/rgb2rgb_template.c | 9 |
2 files changed, 6 insertions, 12 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 73bbca7849..6ba49112e8 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -37,9 +37,7 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) #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 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) { #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 --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index 73bbca7849..6ba49112e8 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -37,9 +37,7 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) #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 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) { #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" |