[MPlayer-cvslog] r25935 - in trunk/libvo: osd.c osd_template.c

reimar subversion at mplayerhq.hu
Wed Jan 30 19:52:59 CET 2008


Author: reimar
Date: Wed Jan 30 19:52:59 2008
New Revision: 25935

Log:
Avoid a MANGLE, there is no register pressure and the generated code
should be no worse.


Modified:
   trunk/libvo/osd.c
   trunk/libvo/osd_template.c

Modified: trunk/libvo/osd.c
==============================================================================
--- trunk/libvo/osd.c	(original)
+++ trunk/libvo/osd.c	Wed Jan 30 19:52:59 2008
@@ -17,7 +17,7 @@
 #endif
 
 #ifdef CAN_COMPILE_X86_ASM
-static const uint64_t bFF attribute_used __attribute__((aligned(8))) = 0xFFFFFFFFFFFFFFFFULL;
+static const uint64_t bFF __attribute__((aligned(8))) = 0xFFFFFFFFFFFFFFFFULL;
 static const unsigned long long mask24lh  __attribute__((aligned(8))) = 0xFFFF000000000000ULL;
 static const unsigned long long mask24hl  __attribute__((aligned(8))) = 0x0000FFFFFFFFFFFFULL;
 #endif

Modified: trunk/libvo/osd_template.c
==============================================================================
--- trunk/libvo/osd_template.c	(original)
+++ trunk/libvo/osd_template.c	Wed Jan 30 19:52:59 2008
@@ -380,7 +380,7 @@ static inline void RENAME(vo_draw_alpha_
 		"pand %%mm4, %%mm0\n\t" 	//0R0B0R0B
 		"psrlw $8, %%mm1\n\t"		//0?0G0?0G
 		"movd	%%eax, %%mm2\n\t" 	//srca 0000DCBA
-		"paddb	"MANGLE(bFF)", %%mm2\n\t"
+		"paddb	%3, %%mm2\n\t"
 		"punpcklbw %%mm2, %%mm2\n\t"	//srca DDCCBBAA
 		"movq %%mm2, %%mm3\n\t"
 		"punpcklbw %%mm7, %%mm2\n\t"	//srca 0B0B0A0A
@@ -410,7 +410,7 @@ static inline void RENAME(vo_draw_alpha_
 		"paddb	%%mm6, %%mm0\n\t"
 		"movq	%%mm0, 8%0\n\t"
 		"1:\n\t"
-		:: "m" (dstbase[4*x]), "m" (srca[x]), "m" (src[x])
+		:: "m" (dstbase[4*x]), "m" (srca[x]), "m" (src[x]), "m" (bFF)
 		: "%eax");
 	}
 #endif



More information about the MPlayer-cvslog mailing list