View Single Post
  #2   Spotlight this post!  
Unread 21-06-2009, 21:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: PPC bool bitfield

I don't think either is correct.

The ": 1" part of the definition specifies how many bits wide to make the element. If the compiler does what it is hinted to do, the eight booleans will take up exactly one byte. That will map precisely onto the one-byte char also defined in the union.
Reply With Quote