From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] common: introduce an integer log2 function Date: Mon, 03 Jul 2017 10:48:51 +0200 Message-ID: <1678816.Vku0tILulI@xps> References: <20170406141536.14980-1-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Olivier Matz Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id D93042B99 for ; Mon, 3 Jul 2017 10:48:52 +0200 (CEST) In-Reply-To: <20170406141536.14980-1-olivier.matz@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 06/04/2017 16:15, Olivier Matz: > At some places, the log2() function is used despite this function > works on float. This introduces a dependency to the math lib but > most of the time it is not required because we want an integer log2. > > Add a new helper to do this job and fix 2 drivers. Only nfp driver is fixed. > Signed-off-by: Olivier Matz Acked-by: Alejandro Lucero Applied, thanks