On Mon, 8 Jun 2020 at 21:16, Ákos Uzonyi <uzonyi.akos at gmail.com> wrote: > +static uint8_t > +lg2(uint64_t n) > +{ > + uint8_t res = 0; > + while (n) { > + res++; > + n >>= 1; > + } > + return res; > +} Should it be moved to utils.c?