From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id 2BFF95A1F for ; Thu, 15 Jan 2015 14:12:35 +0100 (CET) Received: by mail-wi0-f181.google.com with SMTP id hi2so17675670wib.2 for ; Thu, 15 Jan 2015 05:12:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=k2RUQeVVumnHYpUU9huybIFNItwjneC0cnoZ7f20Rso=; b=DXhz/ngGIsyj6a3hg5WYnLFUN2uPsGo2AJtbQAQ0lrprjEd5ndUr7/i0ppOyTkUqkF HC5CtW9uwKbhC/rbDb5h9MntGEVRtcPcTbd38iYfxtJsRHxJticWT/QHEoey+5FXCp76 djUCIiUkoNlz9e+M4ZSngisT0FckUB5vWwATwG9JmOm5ZwofA6gyU/RWzaXp1WIcJDqj c2a7m8xffTT70GB8FG/ZogZ2oPY2G/VO707igf995R0tkHwYr+0UA1i77fqQa4VmNWcq yv8N2fnm+xlpcxvljBMkmgnOBPctQIRoTKBkJFY2AX8fdPH0qyLF0TXJFe3UmJtRgwlX Z0bw== X-Gm-Message-State: ALoCoQm4iCqwDcUS+G6PvwOLEnSQ0dVpGoLxZkDwolH31S9mksTVzF7BwIwSPeJuSEATWk8G6wsd X-Received: by 10.194.93.5 with SMTP id cq5mr17546859wjb.84.1421327554510; Thu, 15 Jan 2015 05:12:34 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id jp3sm22734246wid.9.2015.01.15.05.12.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jan 2015 05:12:33 -0800 (PST) From: Thomas Monjalon To: Ravi Kerur Date: Thu, 15 Jan 2015 14:12:11 +0100 Message-ID: <2170549.yqdN67uleK@xps13> Organization: 6WIND User-Agent: KMail/4.14.3 (Linux/3.17.6-1-ARCH; KDE/4.14.3; x86_64; ; ) In-Reply-To: <20141227204903.GB16138@localhost.localdomain> References: <1419694115-1892-1-git-send-email-rkerur@gmail.com> <1419694244-2018-1-git-send-email-rkerur@gmail.com> <20141227204903.GB16138@localhost.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [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: Thu, 15 Jan 2015 13:12:35 -0000 > > rte_is_power_of_2 returns true for 0 and 0 is not power_of_2. Fix > > by checking for n. > > > > Signed-off-by: Ravi Kerur > Acked-by: Neil Horman Applied Thanks -- Thomas