From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 704F5A0C46; Mon, 27 Sep 2021 18:32:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0910410DC; Mon, 27 Sep 2021 18:32:44 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mails.dpdk.org (Postfix) with ESMTP id E836E40E3C for ; Mon, 27 Sep 2021 18:32:43 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A88463201C62; Mon, 27 Sep 2021 12:32:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 27 Sep 2021 12:32:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= V64GpCOwnKYyZFSKsotR/ehpUlWN1Mqr6MJrJv2U2ho=; b=nVdyWgbhlNw5aKBp dn43MWxmd4ntMhTHdCAyvE4CrvSWRv8X4XU6rdaqgojE20we7hnvTGIEWWj68Hi1 j6JpAP3Iy2bXXP6Ev7Uabjn4+JzKmNE9SSn/PcsgnxPZnYQy2tNpAZpHc8bDJDSf x19+zJOJTFBxxBq4VoSrCACF5OovEqyI2IOUl5MC/Yl89FsdTPv/bGGl8dot+PgA UPhAn0d4kTFwyfDZbNE5/ZZlx9vaS9gszFE2POPm8vn9ydUpXoeF3nv6EXlcQqQl eBQNKdUjdTfPpJCzIIom9rhTJy6/i+4F/co9ntU2WYG0bYHlYL8tABTtuA6FgYuC ebWMgw== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=V64GpCOwnKYyZFSKsotR/ehpUlWN1Mqr6MJrJv2U2 ho=; b=llrHzEbnI6+gv2z5MioALPtoy8i4Fd5aHAVQ8vt855eOrqtH7Smu0op+z QuMTvNL7yKXK60aTXu7MwRIQHHpsKHQtaTq2cd906OxssBfwKgruHzGhTayuOlBc TIs7TlpdUTUPzgvNtO9obFd/vLB1t0vx3J6r+Gno1zSvzcOsXaa1QdUtxjFnkesW z+6ZYC7+jEawkqddszh1L3C21SHUN/1BqKCb1LL4VQLqb+jzFnLDSB67wWg47QmU UONPCaJbMfvR6M5AuCYpax2oYnkUrUQBnUkypIUoiTKXkYmIlAs7XvjoxwL5SSJX +0LxT3tR9w7W8qY9n6Af51urRN+TA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejkedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej ueeiiedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Sep 2021 12:32:40 -0400 (EDT) From: Thomas Monjalon To: Shijith Thotton Cc: dev@dpdk.org, Jerin Jacob , Pavan Nikhilesh , Jerin Jacob Date: Mon, 27 Sep 2021 18:32:38 +0200 Message-ID: <74218650.t4zyzhSeNO@thomas> In-Reply-To: References: <921c4cfaa08605cac9dd1f63b52139c0860cd622.1627485542.git.sthotton@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] eal: add macro to swap two numbers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" 06/09/2021 10:17, Jerin Jacob: > On Wed, Jul 28, 2021 at 8:52 PM Shijith Thotton wrote: > > > > Added a macro to swap two numbers and updated common autotest for the > > same. > > > > Signed-off-by: Shijith Thotton > > Acked-by: Jerin Jacob > > > Needed-for: drivers: add external clock support for cnxk timer > > @Thomas Monjalon Could you merge this to the main tree if the patch > looks OK to you. > > > --- a/lib/eal/include/rte_common.h > > +++ b/lib/eal/include/rte_common.h > > +/** Macro to swap two numbers. */ > > +#define RTE_SWAP(a, b) \ > > + __extension__ ({ \ > > + typeof (a) _a = a; \ > > + a = b; \ > > + b = _a; \ > > + }) Changing comment to: /** Swap two variables. */ Applied, thanks.