Subject: Re: [PATCH] ixgbe: Introduce new 10GbE driver for Intel 82598 based PCI Express adapters...

From: Arjan van de Ven <[email-masked]>
Date: Mon, 02 Jul 2007 07:27:05 -0700

Jeff Garzik wrote:
>>> always avoid bitfields.  They generate horrible code, and endian 
>>> problems abound (though no endian problems are apparent here).
>>
>> they generate no worse code than open coding the checks for these 
>> feature flags...
> 
> That would be the logical assumption, but reality does not bear that 
> logic out to be true.
>

I just checked a small example and gcc just generates a testb with an 
immediate value, which isn't all that bad code.

Do you remember which gcc you tested with?