[MPlayer-dev-eng] swscale question

Nick Kurshev nickols_k at mail.ru
Tue Oct 30 19:14:50 CET 2001


Hello, Michael!

I've looking on your code and have some question for you:
1. For what reason you've added "normal" asm optimization?
 #endif
	//NO MMX just normal asm ...
	asm volatile(
		"xorl %%eax, %%eax		\n\t" // i
		"xorl %%ebx, %%ebx		\n\t" // xx
		"xorl %%ecx, %%ecx		\n\t" // 2*xalpha
		"1:				\n\t"
		"movzbl  (%0, %%ebx), %%edi	\n\t" //src[xx]
		"movzbl 1(%0, %%ebx), %%esi	\n\t" //src[xx+1]
For what cpu it's optimized (pent, pent-mmx, ppro or k6, k7)?
IMHO we should not ignore optimizing possibilities of gcc which
produces enough optimized code for targeted architectures.
(Even if you've win 1-2% on your cpu it doesn't mean that
we'll get the same speedup on every cpu).


More information about the MPlayer-dev-eng mailing list