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
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(-)

--
1.9.1

       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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* 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 \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git