提交 f1b37db4 编写于 作者: M Michael Niedermayer

move the &1 out of the asm so gcc can optimize it away in inlined cases (yes...

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
上级 ab0151d1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册