summaryrefslogtreecommitdiff
path: root/libavcodec/x86/cabac.h
diff options
context:
space:
mode:
authorMatt Oliver <protogonoi@gmail.com>2014-03-30 12:34:49 +1100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-30 23:14:36 +0200
commit0f2588d7e5d2bc92c0a61e8d3e32e90722d98a8e (patch)
treeecf74708a00c4b5521cd816ed8fabda16ec4d592 /libavcodec/x86/cabac.h
parent6d9bdd9d8b6aa552d7cac5d6958b70796f94ca43 (diff)
Use intel compliant CDQ instead of CLTD in inline asm.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/cabac.h')
-rw-r--r--libavcodec/x86/cabac.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/cabac.h b/libavcodec/x86/cabac.h
index 0a68b7b7ef..a1c489e2d8 100644
--- a/libavcodec/x86/cabac.h
+++ b/libavcodec/x86/cabac.h
@@ -219,7 +219,7 @@ static av_always_inline int get_cabac_bypass_sign_x86(CABACContext *c, int val)
"shl $17, %k1 \n\t"
"add %%eax, %%eax \n\t"
"sub %k1, %%eax \n\t"
- "cltd \n\t"
+ "cdq \n\t"
"and %%edx, %k1 \n\t"
"add %k1, %%eax \n\t"
"xor %%edx, %%ecx \n\t"
@@ -266,7 +266,7 @@ static av_always_inline int get_cabac_bypass_x86(CABACContext *c)
"shl $17, %k1 \n\t"
"add %%eax, %%eax \n\t"
"sub %k1, %%eax \n\t"
- "cltd \n\t"
+ "cdq \n\t"
"and %%edx, %k1 \n\t"
"add %k1, %%eax \n\t"
"inc %%edx \n\t"