From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6ADEDA04F3 for ; Fri, 20 Dec 2019 15:07:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 21E4D37A2; Fri, 20 Dec 2019 15:07:06 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 10AF52C52 for ; Fri, 20 Dec 2019 15:07:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576850823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MClqGOAxTv4GcGegi7T6TmJ9iCdoTl6CyJw8cmRb2o4=; b=KawwREuwYMg4DlZ4FfZUhL0WtF/CWK5ta2kioDlWvZobqlgnwl5oSZ0cByQiO8vDx1g9yz ZOLC1syo1EM0rBwzvhoL9euUiGCXaLlGYGHkUb2d1TIu16fH8vXOoA+WmPPqOILS4BBtaS SBUcAkSJwh5DzTjjFHy63763iRgQvV4= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-18-fGi_TbRUPUO9N3_kk9uBkA-1; Fri, 20 Dec 2019 09:07:00 -0500 Received: by mail-vk1-f198.google.com with SMTP id j141so3976003vke.21 for ; Fri, 20 Dec 2019 06:06:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mt/ySC98jB2uSbdZdSijd5fNoRdbG282cydr+8wyNHU=; b=N1eEIFeGYf7rofhPyZfyoeLQTeneHXehik8aloyHbzUvRFvtdqItuXX+t3cme2W0wb u395dY+kCd+8bDzM2PNMehukaDiXX3KzzvA504Ixt2h6hh2S0YSh2idC5UEyNggNrw2b bp7lPTYM1YH09Nz8QMeXCe4fpZcYHHX2GW3F5/0mBxu4B8QzV0yk9nu3Nl/282xeDpIk k58kiyFQejD68D1HXgPor1vQvMwxZbOeTIAyE1NhkMDoQ8+jTtMdiDTacwcnt11SV1V7 Acwn9gsw4w9BXdJPTIvjX5mAdz+qPUHlEva2fvq5ICNFR3P0hVeCpFgMlk5GwZs+vO+a T2Zg== X-Gm-Message-State: APjAAAXYkmeDSlbAv01RiCjPVrpO5g5bYw8Od4XtoSeEqmbzzlN3MDQh 4QxxFav1HfbY9CmfIj2kP0SAU47x9eFpmZ7AmKgRpzblZGSmbFQ3B7LQbxf8+x/bBpKjWb0sQRm p/DP8EQYBYjpEUaiXOE+nhew= X-Received: by 2002:a67:b303:: with SMTP id a3mr8474239vsm.141.1576850819487; Fri, 20 Dec 2019 06:06:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyanE5rmzKxBjvGqSa/FzeReKDe1U3m7la8ZpHtPTYsxaxBOf0GFKwuZ3Kk1ZGlfwMuPWcDVQO5Jjm/8oi/oqU= X-Received: by 2002:a67:b303:: with SMTP id a3mr8474222vsm.141.1576850819170; Fri, 20 Dec 2019 06:06:59 -0800 (PST) MIME-Version: 1.0 References: <20191204205241.5691-1-david.marchand@redhat.com> <20191220140149.1043-1-david.marchand@redhat.com> In-Reply-To: <20191220140149.1043-1-david.marchand@redhat.com> From: David Marchand Date: Fri, 20 Dec 2019 15:06:47 +0100 Message-ID: To: dev Cc: Aaron Conole , dpdk stable X-MC-Unique: fGi_TbRUPUO9N3_kk9uBkA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH v2] test/common: fix log2 check X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Fri, Dec 20, 2019 at 3:02 PM David Marchand 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) =3D=3D 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) =3D=3D 0 and not -inf. _u64* Will fix while applying. --=20 David Marchand