Replace /2 by >>1 in decode_cabac_mb_dqp()

3 cpu cycles speed up on pentium dual.

Originally committed as revision 16233 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-12-19 02:28:51 +00:00
parent 1aea5d35e5
commit a5b807a6c1

View File

@ -4966,9 +4966,9 @@ static int decode_cabac_mb_dqp( H264Context *h) {
}
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] ) )