# HG changeset patch # User michael # Date 1160688776 0 # Node ID f8c649ac09dd151bb561992419630b9331c88cac # Parent 5bce97c30a69ff9c2a1d1edc2856912da02384fa add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn diff -r 5bce97c30a69 -r f8c649ac09dd cabac.h --- a/cabac.h Thu Oct 12 20:55:42 2006 +0000 +++ b/cabac.h Thu Oct 12 21:32:56 2006 +0000 @@ -446,7 +446,7 @@ "movl %%ebx, "LOW "(%2) \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" + : "%ecx", "%ebx", "%edx", "%esi", "memory" ); bit&=1; #else /* BRANCHLESS_CABAC_DECODER */ @@ -516,7 +516,7 @@ "1: \n\t" :"=&a"(bit) :"r"(state), "r"(c) - : "%ecx", "%ebx", "%edx", "%esi" + : "%ecx", "%ebx", "%edx", "%esi", "memory" ); bit&=1; #endif /* BRANCHLESS_CABAC_DECODER */