Help with bit-field semantics in C and C++

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Aug 27 22:41:00 GMT 2004


"Steven L. Zook" <SLZook@Qualstar.com> writes:

| I'm asking whether the initialized value for Sparse would be 0xF, or
| one of One, Two, Four, or Eight. 

The value is an enumeration value that is unspecified -- which means
that GCC does not have to document exactly which enumeration it would
contain.  It can be anything of the above list.  If mask operation is
used to clip the value (most likely), then you'll end dup with 0xF, but
that is not something you should count on.

-- Gaby



More information about the Gcc mailing list