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