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 57188A0526; Thu, 9 Jul 2020 09:30:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E87DF1DBC7; Thu, 9 Jul 2020 09:30:52 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by dpdk.org (Postfix) with ESMTP id EAF781DBBF for ; Thu, 9 Jul 2020 09:30:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GiceTgdz1GRZSJrh/a8+YoATDNC7edVsu3+Lq9CQRu3DbzqcNQd3T/nyPrT+GVwdWCWWTXXAK+iV7IbdYSJ2N7Q5FVrA0FzNbm9o8NXsqHluk3GRT2VkbkSSv0W0e1bEDdB0HyZdCq/al2GJr5Z+kTjUziazFWAJbRJhjLodz5rf40aKAfwBHpbme40KfY+7s1EHhu0XJVeP3MCyBKSBKAvtOPvX8n9eeo44ifV211mZvzGel0ZDEQu2BIfXBgQW+BOxkgf6KCbvOjSoiBxxSboL3DkErJcab4KenrDNw76jfTwrtAiIGlr04qUOM6/up7t+fUgKtxDlxL5AYkeeBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kIWnPP0gEsSjN4BbXYiHF4W1dMwCe2cNV60JV7RwXe4=; b=J22wI/8gFaKkN0SPSMx1jpSjz/ADSJRPU1MMysSvRvP1Di/MD6gA06nsGEAMJidC/J+PKHk8XX4bwEoZDAEG1VKvBwWRN56eh6oa80uwPuvmNN0WETSW2zrqo0WuOC8/PQXEfMkfaP4YqiL38Muob9XJyHi/FoMnmf2aZtX+OAzH4XalkFyVACJCrNPd4pICJBN0uDoivgE6rhk4tc6HL9S3qdXQaTFpEbuFU3nYwHRGPHyOQ+ppMJUX1rYUIod6jXQKfLCjtNdNTDgRwcEiHDMM9fZ1FSlgyTay27M6NpRnkHgSqsQ3GJPdYEutPP75ssRDR7v64RjTpTVxhzydqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kIWnPP0gEsSjN4BbXYiHF4W1dMwCe2cNV60JV7RwXe4=; b=hWYn3gDlstx2kTajFdWomfSYvYNE9aXZ9tREVS4Be+7eVu6V5X5qwSIdvMGpq/CP7lIHAKc5ekCGHRtwjI5rwY8UhSQsYSv76cf3wXUdjDZzOTUrbqfUYLhGIDKRwqwZehIjfNm/qLOEgUe1WDbwEeFlb10yHgj0BZLdlinPLUk= Received: from AM0PR05MB4866.eurprd05.prod.outlook.com (2603:10a6:208:c0::32) by AM4PR05MB3428.eurprd05.prod.outlook.com (2603:10a6:205:4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.23; Thu, 9 Jul 2020 07:30:49 +0000 Received: from AM0PR05MB4866.eurprd05.prod.outlook.com ([fe80::d44d:a804:c730:d2b7]) by AM0PR05MB4866.eurprd05.prod.outlook.com ([fe80::d44d:a804:c730:d2b7%2]) with mapi id 15.20.3153.029; Thu, 9 Jul 2020 07:30:49 +0000 From: Parav Pandit To: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= , Thomas Monjalon , Joyce Kong CC: "dev@dpdk.org" , "grive@u256.net" , "ferruh.yigit@intel.com" , Ori Kam , Matan Azrad Thread-Topic: [dpdk-dev] [PATCH v4 01/10] eal: introduce macros for getting valuefor bit Thread-Index: AQHWU4O5Hgff3FwM+kifgpETpftNOaj7/oAwgAAKbgCAAAe6AIACs06wgAAV2gCAAASyAA== Date: Thu, 9 Jul 2020 07:30:47 +0000 Message-ID: References: <20200610171728.89-2-parav@mellanox.com> <98CBD80474FA8B44BF855DF32C47DC35C610FE@smartserver.smartshare.dk> <3379690.1gGlKYMXnk@thomas> <98CBD80474FA8B44BF855DF32C47DC35C61106@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35C6110D@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35C6110D@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: smartsharesystems.com; dkim=none (message not signed) header.d=none; smartsharesystems.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [106.51.28.254] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 177005de-3d7e-4998-4bb1-08d823da0076 x-ms-traffictypediagnostic: AM4PR05MB3428: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 04599F3534 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9bEK2Vo2ysGqVlKWXlJKeMYxl2MDjTodArX0LAKSc0amu50r0WcR0wmxIRrLw6jI0m60ogeGtib4duBV3LHdbbD65bCl/c3kdapLCkcPE89YeqAbnwDI4WS3m7XRtiUz9umGf7pHc1Vay0ydkSMmilgSNarNgEPPg9WEw4VUpY7FPshBNHjWr8fJKKLyvw615oGBnBm5YdwbYWn9ay4p3zeDNqTzXTlBKWRRYBVc0G6wdG/5Nb1cKVq1huuqJYxtWfCwenChUuTVjobs8sN+sI/8JKCaVCaa6WY2JLQiHdTKlb9SZyyu7tm6M6q65wYlUi9SnVYBCP68Z41pfaYjGA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4866.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(376002)(396003)(39860400002)(136003)(107886003)(478600001)(66946007)(64756008)(66476007)(55236004)(66556008)(66574015)(6506007)(110136005)(316002)(8936002)(66446008)(54906003)(9686003)(52536014)(33656002)(55016002)(7696005)(8676002)(4326008)(5660300002)(26005)(2906002)(186003)(83380400001)(71200400001)(76116006)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: FgkX7rAXcZveHXPl/s886hjXtSSMtXce7ZkFfHnF3kYLg6fB+FEJMUnfjX5X9eMQ6RjUkPAHcwX5/+PkRI32atHa5gVlk0DjU1BAwzkH10VDynwNgmWFmg3gMT0c3NZzeeEXqlXGAqs35hg9/z70AItCalGkU/tj/yGGeulwq8KoiLnbw0fdOisrajSCk+6ikmEGGKHqKsPf4i7vnw8rag2vNBsM+0wnFwAJQSVH0cjLeNih0UAX77IkEa/qKvhsNFvzsU5g9nISjQdLwHp10XeuwdHX6fH0cZ8RfoqYy4zuuBkdpLwXNTRct+bt9VSK8RK8d6/tIPJ0tvJMYk1DcgcqPP1Tn7LSCNupZMNZ8Zkrbl9itX2dwOild2MrFNNsNet97J/rhovMSDNozuijsWtgb0+XhX3DK7FKzR0dr77P2tKarmpjnGzqWRPPycCgeal1ZpDA03mBUzW2qAwryPktPoAXC9r75sKPOS9UWx2DBjVrLhADpXHf6L8LDtT9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4866.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 177005de-3d7e-4998-4bb1-08d823da0076 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2020 07:30:47.9756 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uf/MG8+ewgKlzSKlDQ/dKsODklNWwJ/A3rV3A0dZKYr8HSURLe3VFWk+6LhfoNR57yvQSSFV8ZUfTZe5gcLLDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3428 Subject: Re: [dpdk-dev] [PATCH v4 01/10] eal: introduce macros for getting valuefor bit 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" DQoNCj4gRnJvbTogTW9ydGVuIEJyw7hydXAgPG1iQHNtYXJ0c2hhcmVzeXN0ZW1zLmNvbT4NCj4g U2VudDogVGh1cnNkYXksIEp1bHkgOSwgMjAyMCAxMjo0NiBQTQ0KPiANCj4gPiBGcm9tOiBkZXYg W21haWx0bzpkZXYtYm91bmNlc0BkcGRrLm9yZ10gT24gQmVoYWxmIE9mIFBhcmF2IFBhbmRpdA0K PiA+IFNlbnQ6IFRodXJzZGF5LCBKdWx5IDksIDIwMjAgODoyNCBBTQ0KPiA+DQo+ID4gSGkgTW9y dGVuLA0KPiA+DQo+ID4gPiBGcm9tOiBNb3J0ZW4gQnLDuHJ1cCA8bWJAc21hcnRzaGFyZXN5c3Rl bXMuY29tPg0KPiA+ID4gU2VudDogVHVlc2RheSwgSnVseSA3LCAyMDIwIDY6MTEgUE0NCj4gPg0K PiA+ID4gQWRkaW5nIEpveWNlIEtvbmcgdG8gdGhpcyBkaXNjdXNzaW9uIGFzIHRoZSBydGVfYml0 b3BzIG1haW50YWluZXIuDQo+ID4gPg0KPiA+ID4gPiBG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