# HG changeset patch # User michael # Date 1160443059 0 # Node ID 9854f686ba79d9b01fe682991fa7843a7041814f # Parent 5afe4253a220588f94480b917285da41bd633868 move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster) diff -r 5afe4253a220 -r 9854f686ba79 cabac.h --- a/cabac.h Tue Oct 10 01:08:39 2006 +0000 +++ b/cabac.h Tue Oct 10 01:17:39 2006 +0000 @@ -512,11 +512,11 @@ "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;