move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Oct 2006 01:17:39 +0000 (01:17 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Oct 2006 01:17:39 +0000 (01:17 +0000)
Originally committed as revision 6616 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/cabac.h

index e35f6ea..7bd0e41 100644 (file)
@@ -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;