On Fri, Dec 20, 2019 at 3:02 PM David Marchand
<david.march...@redhat.com> wrote:
> diff --git a/lib/librte_eal/common/include/rte_common.h 
> b/lib/librte_eal/common/include/rte_common.h
> index 459d082d14..7a98071ffe 100644
> --- a/lib/librte_eal/common/include/rte_common.h
> +++ b/lib/librte_eal/common/include/rte_common.h
> @@ -538,6 +538,9 @@ rte_bsf32_safe(uint64_t v, uint32_t *pos)
>  /**
>   * Return the rounded-up log2 of a integer.
>   *
> + * @note Contrary to the logarithm mathematical operation,
> + * rte_log2_u32(0) == 0 and not -inf.
> + *
>   * @param v
>   *     The input parameter.
>   * @return
> @@ -632,6 +635,9 @@ rte_fls_u64(uint64_t x)
>  /**
>   * Return the rounded-up log2 of a 64-bit integer.
>   *
> + * @note Contrary to the logarithm mathematical operation,
> + * rte_log2_u32(0) == 0 and not -inf.

_u64*
Will fix while applying.


-- 
David Marchand

Reply via email to