DPDK patches and discussions
 help / color / mirror / Atom feed
From: r k <rkerur@gmail.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] [PATCH] Small fixes in rte_common.h
Date: Tue, 9 Dec 2014 13:05:15 -0800	[thread overview]
Message-ID: <CAFb4SLB+aHfJmtXZC4Tsk46c7x7AOXohhcMo6EBHh6HS8_PQ7A@mail.gmail.com> (raw)
In-Reply-To: <EDD8E64855FBDA45ACDFE02112E795B70DC84A59B9@HQ1-EXCH03.corp.brocade.com>

Subject: [PATCH] Small fixes in rte_common.h

Fix a bug in power_of_2 since zero is not.
Avoid branching in RTE_MIN and RTE_MAX macros.

Ravi Kerur (1):
  Fix power_of_2 macro.
  Avoid branching when calculating RTE_MIN and RTE_MAX.

 lib/librte_eal/common/include/rte_common.h | 6 +++---
 lib/librte_pmd_e1000/igb_pf.c              | 4 ++--
 lib/librte_pmd_ixgbe/ixgbe_pf.c            | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)


       reply	other threads:[~2014-12-09 21:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1418157854-7642-1-git-send-email-rkerur@gmail.com>
     [not found] ` <EDD8E64855FBDA45ACDFE02112E795B70DC84A59B9@HQ1-EXCH03.corp.brocade.com>
2014-12-09 21:05   ` r k [this message]
     [not found] ` <1418157854-7642-2-git-send-email-rkerur@gmail.com>
     [not found]   ` <EDD8E64855FBDA45ACDFE02112E795B70DC84A59B7@HQ1-EXCH03.corp.brocade.com>
2014-12-09 21:05     ` [dpdk-dev] [PATCH] Fix power_of_2 macro. Avoid branching when calculating RTE_MIN and RTE_MAX r k
2014-12-10 12:58       ` Thomas Monjalon
2014-12-10 16:48         ` r k

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFb4SLB+aHfJmtXZC4Tsk46c7x7AOXohhcMo6EBHh6HS8_PQ7A@mail.gmail.com \
    --to=rkerur@gmail.com \
    --cc=dev@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).