[Ffmpeg-cvslog] r6679 - trunk/libavcodec/cabac.h

michael subversion
Thu Oct 12 23:32:56 CEST 2006


Author: michael
Date: Thu Oct 12 23:32:56 2006
New Revision: 6679

Modified:
   trunk/libavcodec/cabac.h

Log:
add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn


Modified: trunk/libavcodec/cabac.h
==============================================================================
--- trunk/libavcodec/cabac.h	(original)
+++ trunk/libavcodec/cabac.h	Thu Oct 12 23:32:56 2006
@@ -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 */




More information about the ffmpeg-cvslog mailing list