http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45881

           Summary: bit offset of bitfields
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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.

Reply via email to