From f1b37db48deec5d0601374a52d5fc721e924b82a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 10 Oct 2006 01:17:39 +0000 Subject: [PATCH] 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 --- libavcodec/cabac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;