comparison mjpeg.c @ 3240:5fab2409bf8d libavcodec

+ (sign&1) -> -sign (1 instruction less)
author michael
date Fri, 31 Mar 2006 17:01:58 +0000
parents d92263225a77
children 61d9f1418c02
comparison
equal deleted inserted replaced
3239:d92263225a77 3240:5fab2409bf8d
1289 1289
1290 UPDATE_CACHE(re, &s->gb) 1290 UPDATE_CACHE(re, &s->gb)
1291 { 1291 {
1292 int cache=GET_CACHE(re,gb); 1292 int cache=GET_CACHE(re,gb);
1293 int sign=(~cache)>>31; 1293 int sign=(~cache)>>31;
1294 level = (NEG_USR32(sign ^ cache,code) ^ sign) + (sign&1) ; 1294 level = (NEG_USR32(sign ^ cache,code) ^ sign) - sign;
1295 } 1295 }
1296 1296
1297 LAST_SKIP_BITS(re, &s->gb, code) 1297 LAST_SKIP_BITS(re, &s->gb, code)
1298 1298
1299 if (i >= 63) { 1299 if (i >= 63) {