# HG changeset patch # User michael # Date 1143824518 0 # Node ID 5fab2409bf8d8169ef3a9a5337f8dd071433016c # Parent d92263225a77689b6f16223ca96dd36e4d9a806f + (sign&1) -> -sign (1 instruction less) diff -r d92263225a77 -r 5fab2409bf8d mjpeg.c --- 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)