aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-06-26 13:29:17 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-07-01 19:23:58 +0200
commit72ac64544f9c0529759c0a1dc16d328dd3342b9b (patch)
tree4bc44d3556231c00cb71ab6ef34c8d1615b2f281
parentb62c0c0bce5c3a203a6e01a4f07d991718c5fac5 (diff)
downloadffmpeg-72ac64544f9c0529759c0a1dc16d328dd3342b9b.tar.gz
Add operand size to add instructions.
In these cases it can't be guessed from the operands (at least not necessarily), and it seems some clang versions refuse to compile it. Fixes ticket #303. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> (cherry picked from commit 5c13b5bb398c12361732b7b47c71954484f5af1d)
-rw-r--r--libavcodec/x86/snowdsp_mmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/snowdsp_mmx.c b/libavcodec/x86/snowdsp_mmx.c
index 9c1fa429a8..f107d55e87 100644
--- a/libavcodec/x86/snowdsp_mmx.c
+++ b/libavcodec/x86/snowdsp_mmx.c
@@ -675,14 +675,14 @@ static void ff_snow_vertical_compose97i_mmx(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM
#define snow_inner_add_yblock_sse2_end_8\
"sal $1, %%"REG_c" \n\t"\
- "add $"PTR_SIZE"*2, %1 \n\t"\
+ "add"OPSIZE" $"PTR_SIZE"*2, %1 \n\t"\
snow_inner_add_yblock_sse2_end_common1\
"sar $1, %%"REG_c" \n\t"\
"sub $2, %2 \n\t"\
snow_inner_add_yblock_sse2_end_common2
#define snow_inner_add_yblock_sse2_end_16\
- "add $"PTR_SIZE"*1, %1 \n\t"\
+ "add"OPSIZE" $"PTR_SIZE"*1, %1 \n\t"\
snow_inner_add_yblock_sse2_end_common1\
"dec %2 \n\t"\
snow_inner_add_yblock_sse2_end_common2