Bit fields
Posted: Tue Jan 15, 2008 11:32 am
Hey everyone,
I have a quick question for the members in this community:
Do you prefer structs and bit masks over bit fields or not?
This is using C or C++, of course. I useually just use structs+bit masks to access individual bits, but am now coinsidering the use of bit fields instead as they dont require bit masks to access its members, and looks alot nicer as well.
This makes me wonder: What do you use in your OS?
I have a quick question for the members in this community:
Do you prefer structs and bit masks over bit fields or not?
This is using C or C++, of course. I useually just use structs+bit masks to access individual bits, but am now coinsidering the use of bit fields instead as they dont require bit masks to access its members, and looks alot nicer as well.
This makes me wonder: What do you use in your OS?