From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by dpdk.org (Postfix) with ESMTP id 2A1AE7E23 for ; Tue, 9 Dec 2014 22:05:16 +0100 (CET) Received: by mail-pa0-f46.google.com with SMTP id lf10so693101pab.19 for ; Tue, 09 Dec 2014 13:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0P6pbWVGMfyG911MRAPZZlgRWglQxG6RaxQBaj8QCmM=; b=Ro9az2MeiubY2gSOp159ATNUMbvLCJj9V17hYGRzGid0cckk6WiuydmnMzuh8lUkBi InS+ju+JSD2pWt+OkWcINq8Jpz0e51XO3RGFEZkRKn96chnTtBnMu1TaJIRs4AEfS5JK 6BhOmmS/V4l9OJxNpobDTcWjMqCUlORrFgMbTPqkoPq7SPzGrd6T2Xx8uvUrDuTqGWi0 VdCTxuf87raiFrydFYiYTE179Xr6Ze/9RrI4EUXwz8kXQRRkVa7NaeADRGmesZWcTMxW HeFuOQ0xb9rrnyFzo0MvAQHiLNkjtMZAqOUM/lKghECYCR8daJmTew0bvV0DA4AfQbIP B28A== MIME-Version: 1.0 X-Received: by 10.68.135.197 with SMTP id pu5mr460965pbb.105.1418159115118; Tue, 09 Dec 2014 13:05:15 -0800 (PST) Received: by 10.70.70.40 with HTTP; Tue, 9 Dec 2014 13:05:15 -0800 (PST) In-Reply-To: References: <1418157854-7642-1-git-send-email-rkerur@gmail.com> Date: Tue, 9 Dec 2014 13:05:15 -0800 Message-ID: From: r k To: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 Subject: [dpdk-dev] [PATCH] Small fixes in rte_common.h X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 21:05:16 -0000 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