From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id D1EA23005 for ; Sat, 27 Dec 2014 16:28:46 +0100 (CET) Received: by mail-pd0-f182.google.com with SMTP id p10so14475891pdj.27 for ; Sat, 27 Dec 2014 07:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=HSmMLpAXkUMmYPNtF9iuPz47d4aqh4vlwldY9hXNrOc=; b=lU2Ci/5cK49AyJp2wzlTWgs4BI4khCvmkBWWLQdv2CxJwfX2G7API8pUPhNZpic/Ay idSI1NAF8eZk02csYLybODw/dM5oE2WLJTSevKmCsfWVL9H8tunn+d5/EQ0EvqdoKLmV MKwtZYNV1oAW7DGdK3eosN84aaCbDDHL50Hb4ilDjFC6h9YyiLO3psKJG/Zdlws8ycjC ODaZzuHF5l9by2vE9b1yVel21/dQkf07S8B089jNoOdRE3AMHeoZhRQTiHYe1eYsfJlh dEWGiwadXKjdz6F2O4B9d72hXeg5aEgdIpt69cGRb0BAzPmlp5Gmr4WcHfLnRbeoigE+ Hx9w== X-Received: by 10.70.41.134 with SMTP id f6mr76093802pdl.25.1419694126045; Sat, 27 Dec 2014 07:28:46 -0800 (PST) Received: from iaas-l305162.englab.brocade.com ([144.49.130.148]) by mx.google.com with ESMTPSA id tr8sm31109677pbc.30.2014.12.27.07.28.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Dec 2014 07:28:45 -0800 (PST) From: Ravi Kerur To: dev@dpdk.org Date: Sat, 27 Dec 2014 10:28:35 -0500 Message-Id: <1419694115-1892-1-git-send-email-rkerur@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH v2] Fix rte_is_power_of_2 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: Sat, 27 Dec 2014 15:28:47 -0000 Changes in v2 Make this a separate patch. rte_is_power_of_2 returns true for 0, fix by checking for n. Ravi Kerur (1): Fix rte_is_power_of_2 lib/librte_eal/common/include/rte_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1