From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D09A6376C for ; Mon, 4 Sep 2017 16:01:51 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2017 07:01:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,474,1498546800"; d="scan'208";a="125420941" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga004.jf.intel.com with ESMTP; 04 Sep 2017 07:01:49 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.28]) by IRSMSX151.ger.corp.intel.com ([169.254.4.108]) with mapi id 14.03.0319.002; Mon, 4 Sep 2017 15:01:48 +0100 From: "Burakov, Anatoly" To: Pavan Nikhilesh , "dev@dpdk.org" CC: "Dumitrescu, Cristian" , "stephen@networkplumber.org" Thread-Topic: [dpdk-dev] [PATCH v3 1/3] eal: introduce integer divide through reciprocal Thread-Index: AQHTJLFlmPh+KnHDJEmRbte8x+iDCKKkwftw Date: Mon, 4 Sep 2017 14:01:48 +0000 Message-ID: References: <1504442189-4384-1-git-send-email-pbhagavatula@caviumnetworks.com> In-Reply-To: <1504442189-4384-1-git-send-email-pbhagavatula@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTE0ZDhmNmEtYTIyMC00NjQ3LWI0ZDItYzE0ZjI0MDZmMzQ0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImZDU0pPcXpjV0tNWU5UV284cHU0Y0t1RE9oN0h6K2tHdXFMYlUxRkg4R0E9In0= dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 1/3] eal: introduce integer divide through reciprocal 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, 04 Sep 2017 14:01:52 -0000 > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pavan Nikhilesh > Sent: Sunday, September 3, 2017 1:36 PM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian ; > stephen@networkplumber.org; Pavan Nikhilesh > > Subject: [dpdk-dev] [PATCH v3 1/3] eal: introduce integer divide through > reciprocal >=20 > In some use cases of integer division, denominator remains constant and > numerator varies. It is possible to optimize division for such specific > scenarios. >=20 > The librte_sched uses rte_reciprocal to optimize division so, moving it t= o > eal/common would allow other libraries and applications to use it. >=20 > Signed-off-by: Pavan Nikhilesh > --- Reviewed-by: Anatoly Burakov