[FFmpeg-devel] [PATCH] Lagarith range decoder.

Loren Merritt lorenm
Sat Sep 5 19:52:57 CEST 2009


On Sat, 5 Sep 2009, Nathan Caldwell wrote:

> On Sat, Sep 5, 2009 at 9:51 AM, Loren Merritt<lorenm at u.washington.edu> wrote:
>
>> + // FIXME make av_log2 fast so it's usable here
>> + shift = __builtin_clz(range_scaled) - 1;
>
> Is this still faster than division using av_log2?
> If you didn't test, I'll check it out later tonight.

Yes. 1.3x instead of 1.5x.

--Loren Merritt



More information about the ffmpeg-devel mailing list