Commit 72ecc14e authored by nick's avatar nick

More accurate prefetching


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2513 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 77ce93f0
...@@ -37,9 +37,7 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) ...@@ -37,9 +37,7 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
#ifdef PREFETCH #ifdef PREFETCH
__asm __volatile( __asm __volatile(
PREFETCH" %0\n\t" PREFETCH" %0\n\t"
PREFETCH" 64%0\n\t" ::"m"(*s):"memory");
PREFETCHW" %1\n\t"
PREFETCHW" 64%1\n\t"::"m"(*s),"m"(*dest):"memory");
#endif #endif
mm_end = (uint8_t*)((((unsigned long)end)/16)*16); mm_end = (uint8_t*)((((unsigned long)end)/16)*16);
__asm __volatile("movq %0, %%mm7"::"m"(mask32):"memory"); __asm __volatile("movq %0, %%mm7"::"m"(mask32):"memory");
...@@ -47,9 +45,8 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) ...@@ -47,9 +45,8 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
{ {
#ifdef PREFETCH #ifdef PREFETCH
__asm __volatile( __asm __volatile(
PREFETCH" 128%0\n\t" PREFETCH" 32%0\n\t"
PREFETCHW" 128%1" ::"m"(*s):"memory");
::"m"(*s),"m"(*dest):"memory");
#endif #endif
__asm __volatile( __asm __volatile(
"movd %1, %%mm0\n\t" "movd %1, %%mm0\n\t"
......
...@@ -37,9 +37,7 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) ...@@ -37,9 +37,7 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
#ifdef PREFETCH #ifdef PREFETCH
__asm __volatile( __asm __volatile(
PREFETCH" %0\n\t" PREFETCH" %0\n\t"
PREFETCH" 64%0\n\t" ::"m"(*s):"memory");
PREFETCHW" %1\n\t"
PREFETCHW" 64%1\n\t"::"m"(*s),"m"(*dest):"memory");
#endif #endif
mm_end = (uint8_t*)((((unsigned long)end)/16)*16); mm_end = (uint8_t*)((((unsigned long)end)/16)*16);
__asm __volatile("movq %0, %%mm7"::"m"(mask32):"memory"); __asm __volatile("movq %0, %%mm7"::"m"(mask32):"memory");
...@@ -47,9 +45,8 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) ...@@ -47,9 +45,8 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
{ {
#ifdef PREFETCH #ifdef PREFETCH
__asm __volatile( __asm __volatile(
PREFETCH" 128%0\n\t" PREFETCH" 32%0\n\t"
PREFETCHW" 128%1" ::"m"(*s):"memory");
::"m"(*s),"m"(*dest):"memory");
#endif #endif
__asm __volatile( __asm __volatile(
"movd %1, %%mm0\n\t" "movd %1, %%mm0\n\t"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment