[FFmpeg-devel] [PATCH] lavu/intmath: add faster clz support

Kieran Kunhya kierank at obe.tv
Thu Dec 17 18:20:15 CET 2015


>> +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?


More information about the ffmpeg-devel mailing list