Re: [dpdk-dev] [PATCH] eventdev: fix dequeue timeout bitmask brackets

2017-04-19 Thread Thomas Monjalon
> > 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: > >

Re: [dpdk-dev] [PATCH] eventdev: fix dequeue timeout bitmask brackets

2017-04-14 Thread Jerin Jacob
-Original Message- > Date: Fri, 14 Apr 2017 17:04:58 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.ja...@caviumnetworks.com, Harry van Haaren > > Subject: [PATCH] eventdev: fix dequeue timeout bitmask brackets > X-Mailer: git-send-email 2.7.4 > > Fix brackets around the

[dpdk-dev] [PATCH] eventdev: fix dequeue timeout bitmask brackets

2017-04-14 Thread Harry van Haaren
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) {