From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eventdev: fix dequeue timeout bitmask brackets Date: Thu, 20 Apr 2017 00:21:48 +0200 Message-ID: <5459454.5IYbonOstQ@xps> References: <1492185898-43547-1-git-send-email-harry.van.haaren@intel.com> <20170415045811.GA9449@jerin> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Jerin Jacob , ferruh.yigit@intel.com To: Harry van Haaren Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 551B45A98 for ; Thu, 20 Apr 2017 00:21:50 +0200 (CEST) In-Reply-To: <20170415045811.GA9449@jerin> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > Fix brackets around the & operator to first mask a single bit > > and then perform the not operator. Previously the result was > > not as expected, due to the ! operator being performed first. > > > > As noted on list[1] Clang 4.0 warns about a possible bug for > > > > this type of line: > > if (!variable & FLAG) { > > > > Fixes: 4f0804bbdfb9 ("eventdev: implement the northbound APIs") > > > > Signed-off-by: Harry van Haaren > > Acked-by: Jerin Jacob A similar patch has been applied, sorry: http://dpdk.org/commit/27e9fb84