#299 bit offset of bitfields

open
nobody
None
5
2010-10-04
2010-10-04
wek
No

A (builtin) function, returning bit offset for bitfields within structs, could
be useful to pass bit "addresses" as function parameters.

In analogy to offsetof()/sizeof(), a similar function returning number of bits
of a bitfield could be created, too, although it would be less useful than the
offset.

(I posted the same feature request to the gcc tracker, too, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45881 ).

Jan Waclawek

Discussion


Log in to post a comment.