diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-10 01:17:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-10 01:17:39 +0000 |
commit | f1b37db48deec5d0601374a52d5fc721e924b82a (patch) | |
tree | 4f9ae93828984d3224cbd45e563a4ba2a1899dc1 /libavcodec/cabac.h | |
parent | ab0151d163287160038052778ebf21b5529c12fd (diff) | |
download | ffmpeg-f1b37db48deec5d0601374a52d5fc721e924b82a.tar.gz |
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.h | 2 |
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; |