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

michael subversion
Mon Oct 9 17:52:17 CEST 2006


Author: michael
Date: Mon Oct  9 17:52:17 2006
New Revision: 6604

Modified:
   trunk/libavcodec/cabac.h

Log:
drop failed attempt to optimize *state= c->mps_state[s];


Modified: trunk/libavcodec/cabac.h
==============================================================================
--- trunk/libavcodec/cabac.h	(original)
+++ trunk/libavcodec/cabac.h	Mon Oct  9 17:52:17 2006
@@ -456,23 +456,7 @@
 #if 1
     if(c->low < c->range){
         bit= s&1;
-#ifdef ARCH_X86
-    //P3:627
-asm(
-        "addb $2, %b0       \n\t"
-        " js 1f             \n\t"
-        "movb %b0, %1       \n\t"
-        "1:                 \n\t"
-        : "+q"(s), "=m"(*state)
-);
-#else
-        *state= c->mps_state[s]; //P3:655
-/*        if(s<126) //P3:657
-            *state= s+2;*/
-        s+=2; //P3:631
-        if(s<128)
-            *state= s;
-#endif
+        *state= c->mps_state[s];
         renorm_cabac_decoder_once(c);
     }else{
         bit= ff_h264_norm_shift[RangeLPS>>19];




More information about the ffmpeg-cvslog mailing list