[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mjpeg.c,1.128,1.129

Michael Niedermayer CVS michael
Fri Mar 31 19:02:01 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv4728

Modified Files:
	mjpeg.c 
Log Message:
+ (sign&1) -> -sign (1 instruction less)


Index: mjpeg.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mjpeg.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- mjpeg.c	31 Mar 2006 16:50:43 -0000	1.128
+++ mjpeg.c	31 Mar 2006 17:01:58 -0000	1.129
@@ -1291,7 +1291,7 @@
             {
                 int cache=GET_CACHE(re,gb);
                 int sign=(~cache)>>31;
-                level = (NEG_USR32(sign ^ cache,code) ^ sign) + (sign&1) ;
+                level = (NEG_USR32(sign ^ cache,code) ^ sign) - sign;
             }
 
             LAST_SKIP_BITS(re, &s->gb, code)





More information about the ffmpeg-cvslog mailing list