On Thu, Dec 17, 2015 at 9:29 AM, Ganesh Ajjanagadde wrote:
> On Thu, Dec 17, 2015 at 9:25 AM, Clément Bœsch wrote:
>> On Thu, Dec 17, 2015 at 09:23:53AM -0800, Ganesh Ajjanagadde wrote:
>>> On Thu, Dec 17, 2015 at 9:20 AM, Kieran Kunhya wrote:
>>> >>> +static av_always_inline av_const unsigned f
On Thu, Dec 17, 2015 at 9:25 AM, Clément Bœsch wrote:
> On Thu, Dec 17, 2015 at 09:23:53AM -0800, Ganesh Ajjanagadde wrote:
>> On Thu, Dec 17, 2015 at 9:20 AM, Kieran Kunhya wrote:
>> >>> +static av_always_inline av_const unsigned ff_clz_c(unsigned v)
>> >>> +{
>> >>> +unsigned i = sizeof(x)
On Thu, Dec 17, 2015 at 09:23:53AM -0800, Ganesh Ajjanagadde wrote:
> On Thu, Dec 17, 2015 at 9:20 AM, Kieran Kunhya wrote:
> >>> +static av_always_inline av_const unsigned ff_clz_c(unsigned v)
> >>> +{
> >>> +unsigned i = sizeof(x) * 8;
> >>> +
> >>> +while (x) {
> >>> +x >>= 1;
>
On Thu, Dec 17, 2015 at 9:20 AM, Kieran Kunhya 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
>>> +
>
>
>> +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?
___
ff
On Thu, Dec 17, 2015 at 8:33 AM, Ganesh Ajjanagadde
wrote:
> This should be useful for the sofalizer filter.
>
> Signed-off-by: Ganesh Ajjanagadde
> ---
> libavutil/intmath.h | 18 ++
> 1 file changed, 18 insertions(+)
>
> diff --git a/libavutil/intmath.h b/libavutil/intmath.h
>
This should be useful for the sofalizer filter.
Signed-off-by: Ganesh Ajjanagadde
---
libavutil/intmath.h | 18 ++
1 file changed, 18 insertions(+)
diff --git a/libavutil/intmath.h b/libavutil/intmath.h
index 2016723..2bb0b62 100644
--- a/libavutil/intmath.h
+++ b/libavutil/intm