[MPlayer-cvslog] r23014 - trunk/libswscale/rgb2rgb_template.c

ivo subversion at mplayerhq.hu
Wed Apr 18 11:26:22 CEST 2007


Author: ivo
Date: Wed Apr 18 11:26:22 2007
New Revision: 23014

Modified:
   trunk/libswscale/rgb2rgb_template.c

Log:
skip MMX code in rgb32to16 if the size of the input is smaller than the
size of the units the MMX code processes


Modified: trunk/libswscale/rgb2rgb_template.c
==============================================================================
--- trunk/libswscale/rgb2rgb_template.c	(original)
+++ trunk/libswscale/rgb2rgb_template.c	Wed Apr 18 11:26:22 2007
@@ -356,6 +356,7 @@ static inline void RENAME(rgb32to16)(con
 		"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"
@@ -379,6 +380,7 @@ static inline void RENAME(rgb32to16)(con
 		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)



More information about the MPlayer-cvslog mailing list