[dpdk-dev] [PATCH 4/7] ethdev: fix of calculating the size of flow type mask array

Zhang, Helin helin.zhang at intel.com
Tue Feb 3 06:24:11 CET 2015


Hi Thomas

> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> Sent: Monday, February 2, 2015 11:31 PM
> To: Zhang, Helin
> Cc: dev at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH 4/7] ethdev: fix of calculating the size of flow
> type mask array
> 
> 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)?
UINT32_BIT is 32, while sizeof(uint32_t) is 4. They are different.

Regards,
Helin

> 
> --
> Thomas


More information about the dev mailing list