On 09/05/16 15:34, wm4 wrote:

> Maybe I'm missing something, but for constant arguments (which are the
> majority, right?), a simple "(arg > 32 ? long_version : short_version)"
> would do the trick, as constant folding would kill the dead code.

I'm not sure they are the majority, but yes the DCE should take care of it.

> Callers which really need variable bit counts with maximum efficiency
> could call specialized functions. But maybe I'm missing something.

The whole discussion is mostly about the specialized names.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to