On Thu, 19 Dec 2019 23:18:34 +0100 Alfredo Cardigliano <cardigli...@ntop.org> wrote:
> + > +static inline uint16_t ilog2(uint32_t n) > +{ > + uint16_t logv = -1; > + > + if (n == 0) > + return 0; > + > + while (n) { > + logv++; > + n >>= 1; > + } > + > + return logv; > +} There already is rte_log2_u32?