[FFmpeg-devel] [PATCH] FFV1 speed tweaks
Måns Rullgård
mans
Fri Aug 8 23:50:26 CEST 2008
"Jason Garrett-Glaser" <darkshikari at gmail.com> writes:
> + /* Negate context and diff if context is negative */
> + sign = context >> 31;
> + context = (sign ^ context) - sign;
> + diff = (sign ^ diff) - sign;
>
> - if(context < 0){
> - context = -context;
> - diff= -diff;
> - }
This results in worse code on ARM, using 5 instructions instead of 3.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list