changeset 3981:9854f686ba79 libavcodec

move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster)
author michael
date Tue, 10 Oct 2006 01:17:39 +0000
parents 5afe4253a220
children af16271634c2
files cabac.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;