[cfe-dev] Inconsistent types used to represent bitwidth

Hartmut Kaiser hartmut.kaiser at gmail.com
Thu Oct 4 08:09:23 PDT 2007


Chris, 

> >>>>> recognized, that the bitwith (size of a type in bits) is
> >
> > for me, bitwith( X ) == 8*sizeof( X )
> >
> > If we speak of the same things, this was done in order to 
> thread the 
> > size of bitfield member in an uniform manner with other 'normal'
> > variable.
> 
> Yep, exactly!

Ok got it. I simply was heading in the wrong direction.
Thanks for clarifying. I'll change the code base to use uint64_t for this
all over the place then.

Regards Hartmut





More information about the cfe-dev mailing list