From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 4/7] ethdev: fix of calculating the size of flow type mask array Date: Mon, 02 Feb 2015 16:31:17 +0100 Message-ID: <2108624.Ik2ARBIxyb@xps13> References: <1421650577-25969-1-git-send-email-helin.zhang@intel.com> <1421650577-25969-5-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Helin Zhang Return-path: In-Reply-To: <1421650577-25969-5-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Helin, 2015-01-19 14:56, Helin Zhang: > +#define UINT32_BIT (CHAR_BIT * sizeof(uint32_t)) I don't understand how UINT32_BIT is better than a simple sizeof(uint32_t)? -- Thomas