summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-10-10 01:17:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-10-10 01:17:39 +0000
commitf1b37db48deec5d0601374a52d5fc721e924b82a (patch)
tree4f9ae93828984d3224cbd45e563a4ba2a1899dc1 /libavcodec/cabac.h
parentab0151d163287160038052778ebf21b5529c12fd (diff)
move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster)
Originally committed as revision 6616 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r--libavcodec/cabac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index e35f6ea628..7bd0e417be 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -512,11 +512,11 @@ static int get_cabac(CABACContext *c, uint8_t * const state){
"1: \n\t"
"movl %%edx, "RANGE "(%2) \n\t"
"movl %%ebx, "LOW "(%2) \n\t"
- "andl $1, %%eax \n\t"
:"=&a"(bit)
:"r"(state), "r"(c)
: "%ecx", "%ebx", "%edx", "%esi"
);
+ bit&=1;
#endif
#else
int s = *state;