1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 13:17:13 +00:00

More accurate prefetching

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2513 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2001-10-28 13:06:49 +00:00
parent 4bbf6688da
commit d9e4301fcc
2 changed files with 6 additions and 12 deletions

View File

@ -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"

View File

@ -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"