summaryrefslogtreecommitdiff
path: root/libavcodec/x86/h264_i386.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-06-20 23:10:26 +0100
committerMans Rullgard <mans@mansr.com>2011-06-20 23:36:40 +0100
commitc5ee740745596941b84b738cc528ec85b0e6f0a3 (patch)
treea0a6ebc9d194e964828916b22fa1fa4790c70708 /libavcodec/x86/h264_i386.h
parent2143d69bddf42c8c2cf9f45e1f0ce7750e96aad3 (diff)
x86: cabac: fix register constraints for 32-bit mode
Some operands need to be accessed in byte mode, which restricts the available registers in 32-bit mode. Using the 'q' constraint selects a suitable register. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86/h264_i386.h')
-rw-r--r--libavcodec/x86/h264_i386.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/h264_i386.h b/libavcodec/x86/h264_i386.h
index af3addd848..9c86210371 100644
--- a/libavcodec/x86/h264_i386.h
+++ b/libavcodec/x86/h264_i386.h
@@ -89,7 +89,7 @@ static int decode_significance_x86(CABACContext *c, int max_coeff,
"movl %5, %a11(%6) \n\t"
"movl %3, %a12(%6) \n\t"
- :"=&r"(coeff_count), "+r"(significant_coeff_ctx_base), "+m"(index),
+ :"=&q"(coeff_count), "+r"(significant_coeff_ctx_base), "+m"(index),
"=&r"(low), "=&r"(bit), "=&r"(range)
:"r"(c), "m"(minusstart), "m"(end), "m"(minusindex), "m"(last_off),
"i"(offsetof(CABACContext, range)), "i"(offsetof(CABACContext, low)),
@@ -157,7 +157,7 @@ static int decode_significance_8x8_x86(CABACContext *c,
"movl %5, %a12(%7) \n\t"
"movl %3, %a13(%7) \n\t"
- :"=&r"(coeff_count),"+m"(last), "+m"(index), "=&r"(low), "=&r"(bit),
+ :"=&q"(coeff_count),"+m"(last), "+m"(index), "=&r"(low), "=&r"(bit),
"=&r"(range), "=&r"(state)
:"r"(c), "m"(minusindex), "m"(significant_coeff_ctx_base), "m"(sig_off), "m"(last_off),
"i"(offsetof(CABACContext, range)), "i"(offsetof(CABACContext, low)),