Commit 9276bddd authored by İsmail Dönmez's avatar İsmail Dönmez Committed by Martin Storsjö

snowdsp: Explicitly state the operand sizes

Fixes compilation with clang's builtin assembler

Patch by İsmail Dönmez, ismail at namtrac dot org

Originally committed as revision 25331 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 92c5052d
...@@ -812,7 +812,7 @@ snow_inner_add_yblock_sse2_end_16 ...@@ -812,7 +812,7 @@ snow_inner_add_yblock_sse2_end_16
"add %%"REG_c", "PTR_SIZE"*2(%%"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", "PTR_SIZE"*1(%%"REG_a");\n\t"\
"add %%"REG_c", (%%"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"\ "add %%"REG_c", %0 \n\t"\
"dec %2 \n\t"\ "dec %2 \n\t"\
"jnz 1b \n\t"\ "jnz 1b \n\t"\
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "config.h" #include "config.h"
#if ARCH_X86_64 #if ARCH_X86_64
# define OPSIZE "q"
# define REG_a "rax" # define REG_a "rax"
# define REG_b "rbx" # define REG_b "rbx"
# define REG_c "rcx" # define REG_c "rcx"
...@@ -45,6 +46,7 @@ typedef int64_t x86_reg; ...@@ -45,6 +46,7 @@ typedef int64_t x86_reg;
#elif ARCH_X86_32 #elif ARCH_X86_32
# define OPSIZE "l"
# define REG_a "eax" # define REG_a "eax"
# define REG_b "ebx" # define REG_b "ebx"
# define REG_c "ecx" # define REG_c "ecx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment