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

michael subversion
Tue Oct 10 03:17:39 CEST 2006


Author: michael
Date: Tue Oct 10 03:17:39 2006
New Revision: 6616

Modified:
   trunk/libavcodec/cabac.h

Log:
move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster)


Modified: trunk/libavcodec/cabac.h
==============================================================================
--- trunk/libavcodec/cabac.h	(original)
+++ trunk/libavcodec/cabac.h	Tue Oct 10 03:17:39 2006
@@ -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;




More information about the ffmpeg-cvslog mailing list