From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6595220A40; Mon, 3 Jul 2017 04:48:52 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 03 Jul 2017 04:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=DxqXv97nWbdRxZ/ fdg3ASy2FgUfrPncQLekqNfZcTBM=; b=baFLJTrW91dlsFJQh6ArIRRxoWD39E5 2NkQahDZ9ou3+gML1oKktiOTOkA7x0pAikCdCnEaXOu9s+DgG3QtaDcC/sI7rDdD QvHVIOIziE/fr5XNqpgYRr7J+IpQ/tqbTQjbEeYcn4xjrsqd4pEcpubhNokMEnhu pR0+xvvD1zr4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=DxqXv97nWbdRxZ/fdg3ASy2FgUfrPncQLekqNfZcTBM=; b=Jb6QeEIK OJF9k7QTiDgZIYGcdrxcCJw+7izJ0C5eGJTmxdYm/auOFroo4T5efTjGegbVRf33 GvLoPQENfyt1qOc6M87SyJ2SYTT3q99NIYHySNVQO5QCaDRhYhmGBz1Z6h1Xs5fk UN4CaEUCFHxDtRyrFPkkV5/MMvdkPf/0TWXEj2i9q9e/L8WBeypY2UjtAdGI8p88 HQIrk0o75wWkffDkWexIhPvKTOQiTc1A3DjihkMVYAmnDJ2lUgHe4w3oxT03nyKQ /poxDs7bH1eV1BuufFQkeFgVccsH22uOlfQQGVWyQFMAJLiks4xcuX+nW9STOYUJ inB2hrw47nV/hw== X-ME-Sender: X-Sasl-enc: su1kGS909QAsqFcm2k0a+VFhUUmZtBVumGAeaZbkRpXT 1499071732 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 1D73124726; Mon, 3 Jul 2017 04:48:52 -0400 (EDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org Date: Mon, 03 Jul 2017 10:48:51 +0200 Message-ID: <1678816.Vku0tILulI@xps> In-Reply-To: <20170406141536.14980-1-olivier.matz@6wind.com> References: <20170406141536.14980-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] common: introduce an integer log2 function 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: , X-List-Received-Date: Mon, 03 Jul 2017 08:48:53 -0000 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