Commit ebb21e70 authored by michael's avatar michael

moving another bit&1 out, this is as fast as with it in there, but it makes...

moving another bit&1 out, this is as fast as with it in there, but it makes more sense with it outside of the loop


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6618 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dcfd379b
......@@ -441,12 +441,11 @@ static int get_cabac(CABACContext *c, uint8_t * const state){
"2: \n\t"
"movl %%edx, "RANGE "(%2) \n\t"
"movl %%ebx, "LOW "(%2) \n\t"
"andl $1, %%eax \n\t"
:"=&a"(bit) //FIXME this is fragile gcc either runs out of registers or misscompiles it (for example if "+a"(bit) or "+m"(*state) is used
:"r"(state), "r"(c)
: "%ecx", "%ebx", "%edx", "%esi"
);
bit&=1;
#else
asm volatile(
"movzbl (%1), %%eax \n\t"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment