summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-30 18:52:59 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-30 18:52:59 +0000
commit2b9d7e2bdb45a620f42c15b1c00a1ee73cea0ce6 (patch)
tree38e2f8b007da30349cf346682c9fea81529a7499 /libvo
parent034bea46b98c56ff9c61b2aaaf9c54ba8fbffc7b (diff)
downloadmpv-2b9d7e2bdb45a620f42c15b1c00a1ee73cea0ce6.tar.bz2
mpv-2b9d7e2bdb45a620f42c15b1c00a1ee73cea0ce6.tar.xz
Avoid a MANGLE, there is no register pressure and the generated code
should be no worse. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25935 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/osd.c2
-rw-r--r--libvo/osd_template.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libvo/osd.c b/libvo/osd.c
index a307558f68..9bf0cb2f9d 100644
--- a/libvo/osd.c
+++ b/libvo/osd.c
@@ -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
diff --git a/libvo/osd_template.c b/libvo/osd_template.c
index 2fabd207fa..39a682fc5b 100644
--- a/libvo/osd_template.c
+++ b/libvo/osd_template.c
@@ -380,7 +380,7 @@ static inline void RENAME(vo_draw_alpha_rgb32)(int w,int h, unsigned char* src,
"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_rgb32)(int w,int h, unsigned char* src,
"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