# HG changeset patch # User michael # Date 1229653731 0 # Node ID 3019af3f98fa77f7600da169b428627445f31725 # Parent 5ffdec2cd80cca749d984d206452051bde26375a Replace /2 by >>1 in decode_cabac_mb_dqp() 3 cpu cycles speed up on pentium dual. diff -r 5ffdec2cd80c -r 3019af3f98fa h264.c --- a/h264.c Fri Dec 19 02:00:33 2008 +0000 +++ b/h264.c Fri Dec 19 02:28:51 2008 +0000 @@ -4966,9 +4966,9 @@ } if( val&0x01 ) - return (val + 1)/2; + return (val + 1)>>1 ; else - return -(val + 1)/2; + return -((val + 1)>>1); } static int decode_cabac_p_mb_sub_type( H264Context *h ) { if( get_cabac( &h->cabac, &h->cabac_state[21] ) )