1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Fix build with Clang

This commit is contained in:
Koop Mast 2011-06-21 13:46:27 +00:00
parent d066a6fca7
commit 91ac7cdee5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275994
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- gst-libs/ext/ffmpeg/libavcodec/x86/dsputil_mmx.c.orig 2011-06-21 13:50:43.000000000 +0200
+++ gst-libs/ext/ffmpeg/libavcodec/x86/dsputil_mmx.c 2011-06-21 13:51:01.000000000 +0200
@@ -606,7 +606,7 @@ static void add_hfyu_median_prediction_c
__asm__ volatile(
"mov %7, %3 \n"
"1: \n"
- "movzx (%3,%4), %2 \n"
+ "movzbl (%3,%4), %2 \n"
"mov %2, %k3 \n"
"sub %b1, %b3 \n"
"add %b0, %b3 \n"

View File

@ -0,0 +1,23 @@
--- gst-libs/ext/ffmpeg/libavcodec/x86/snowdsp_mmx.c.orig 2011-06-21 15:24:51.000000000 +0200
+++ gst-libs/ext/ffmpeg/libavcodec/x86/snowdsp_mmx.c 2011-06-21 15:26:51.000000000 +0200
@@ -805,13 +805,19 @@ snow_inner_add_yblock_sse2_end_16
"packuswb %%mm5, %%mm1 \n\t"\
"movq %%mm1, "write_offset"(%%"REG_d") \n\t"
+#if ARCH_X86_64
+#define OPSIZE "q"
+#else
+#define OPSIZE "l"
+#endif
+
#define snow_inner_add_yblock_mmx_end(s_step)\
"add $"s_step", %%"REG_S" \n\t"\
"add %%"REG_c", "PTR_SIZE"*3(%%"REG_a");\n\t"\
"add %%"REG_c", "PTR_SIZE"*2(%%"REG_a");\n\t"\
"add %%"REG_c", "PTR_SIZE"*1(%%"REG_a");\n\t"\
"add %%"REG_c", (%%"REG_a") \n\t"\
- "add $"PTR_SIZE"*1, %1 \n\t"\
+ "add"OPSIZE" $"PTR_SIZE"*1, %1 \n\t"\
"add %%"REG_c", %0 \n\t"\
"dec %2 \n\t"\
"jnz 1b \n\t"\