[FFmpeg-cvslog] r23391 - trunk/libavcodec/ivi_common.c
Måns Rullgård
mans
Mon May 31 02:00:08 CEST 2010
maxim <subversion at mplayerhq.hu> writes:
> Author: maxim
> Date: Mon May 31 01:57:51 2010
> New Revision: 23391
>
> Log:
> Make dequantization equation use less registers on some CPUs.
>
> Modified:
> trunk/libavcodec/ivi_common.c
>
> Modified: trunk/libavcodec/ivi_common.c
> ==============================================================================
> --- trunk/libavcodec/ivi_common.c Mon May 31 00:25:40 2010 (r23390)
> +++ trunk/libavcodec/ivi_common.c Mon May 31 01:57:51 2010 (r23391)
> @@ -416,7 +416,7 @@ int ff_ivi_decode_blocks(GetBitContext *
>
> q = (base_tab[pos] * scale_tab[quant]) >> 8;
> if (q > 1)
> - val = val * q + FFSIGN(val) * ((q >> 1) - (q & 1));
> + val = val * q + FFSIGN(val) * (((q ^ 1) - 1) >> 1);
What about the CPUs where this sequence is slower?
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-cvslog
mailing list