[FFmpeg-devel] [PATCH] lavu/intmath: add faster clz support
Clément Bœsch
u at pkh.me
Thu Dec 17 18:25:56 CET 2015
On Thu, Dec 17, 2015 at 09:23:53AM -0800, Ganesh Ajjanagadde wrote:
> On Thu, Dec 17, 2015 at 9:20 AM, Kieran Kunhya <kierank at obe.tv> wrote:
> >>> +static av_always_inline av_const unsigned ff_clz_c(unsigned v)
> >>> +{
> >>> + unsigned i = sizeof(x) * 8;
> >>> +
> >>> + while (x) {
> >>> + x >>= 1;
> >>> + i--;
> >>> + }
> >>> +
> >>> + return i;
> >>> +}
> >>> +#endif
> >>> +
> >
> > erm, does even work?
>
> you mean in what sense? I literally copy/pasted it from avfilter/af_sofalizer.
> If you mean building correctly, I don't know as I have the built-in.
> But then this patch does not actually use it yet; merely adds it to
> the header.
v → x in arg
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151217/379fe2d6/attachment.sig>
More information about the ffmpeg-devel
mailing list