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 3AC5DA04F3; Fri, 20 Dec 2019 15:07:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0159E2C19; Fri, 20 Dec 2019 15:07:04 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 3DF521F1C for ; Fri, 20 Dec 2019 15:07:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576850821; 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=NfNT9v+zv6K5PxEmcngRY9WeMRDAm8gA9XG2RfME6epf06F/YcfPafxuEULg5Lp/cPPKUQ 4Ckr2IXoUD6UoQjlVAk/4UvjRVOiyvj2tG6EVaE5710cGEkSEUQ+6PFAa4BAoD14YOdvSQ vRRCwehOzerrleGuyXQAg+1eWpOg/bE= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-276-RSqcxYkRNA6EcKKoRqqCTA-1; Fri, 20 Dec 2019 09:07:00 -0500 Received: by mail-vk1-f200.google.com with SMTP id z24so4007164vkn.0 for ; Fri, 20 Dec 2019 06:07:00 -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=B8xp7YhwSjFJjlqMlYkjuDl3iTPglK+1ckbRfqOdkEk+ZSmfQ40JSOidMhBjmdCrBg txh7BHSjLhmeFmUI2+q2IdK8MsLWXCcP6lKMwngPmmBG+vRKKCGdUlzawdImw6R0K32U 6AbHKQMdptACUNXR8vwfbbty1gfgsu1Fhbu3d6OzibpTRvb3KUs5b1EyMC4pu3VIqXft 693wv3XlMD/K11SuJ0ePxQfoOTOWF/JLiBJ7tLW76X+E2QqEvqOftjF8ZaasqUwH0yQU +JazYRG3f3P1FG+UbWY7+Lu1cXnb8NkJjrnOod2Z5DD6yIwpMpUvPYq1HEU7qPWi6unu IHaA== X-Gm-Message-State: APjAAAXMGEwqZRsSbSpHIsDSccUjsFn8NWLf3awepSgW2MVEff6tMX0n 0j+p4Ve2RgqmZ97UENyBdav1JW3vTg2cZPabNVf/ys6KxJLII8fhutNcia/BuopBs2m/V4f0E/5 1mvinErPzwtidJE+fvYA= X-Received: by 2002:a67:b303:: with SMTP id a3mr8474241vsm.141.1576850819490; 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: RSqcxYkRNA6EcKKoRqqCTA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v2] test/common: fix log2 check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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