1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

skip MMX code in rgb32to15 if the size of the input is smaller than the

size of the units the MMX code processes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23013 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ivo 2007-04-18 09:24:49 +00:00
parent f854708977
commit a3284e8e5b

View File

@ -513,6 +513,7 @@ static inline void RENAME(rgb32to15)(const uint8_t *src, uint8_t *dst, long src_
"movq %3, %%mm5 \n\t"
"movq %4, %%mm6 \n\t"
"movq %5, %%mm7 \n\t"
"jmp 2f \n\t"
ASMALIGN(4)
"1: \n\t"
PREFETCH" 32(%1) \n\t"
@ -536,6 +537,7 @@ static inline void RENAME(rgb32to15)(const uint8_t *src, uint8_t *dst, long src_
MOVNTQ" %%mm0, (%0) \n\t"
"add $16, %1 \n\t"
"add $8, %0 \n\t"
"2: \n\t"
"cmp %2, %1 \n\t"
" jb 1b \n\t"
: "+r" (d), "+r"(s)