changeset 3240:5fab2409bf8d libavcodec

+ (sign&1) -> -sign (1 instruction less)
author michael
date Fri, 31 Mar 2006 17:01:58 +0000
parents d92263225a77
children 61d9f1418c02
files mjpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mjpeg.c	Fri Mar 31 16:50:43 2006 +0000
+++ b/mjpeg.c	Fri Mar 31 17:01:58 2006 +0000
@@ -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)