This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Optimize byte_from_pos, pos_from_bit


> Like this?

Let's be a bit more factual. :-)

 /* Return the combined truncated byte position for the byte offset OFFSET and
    the bit position BITPOS.

    These functions operate on byte and bit positions present in FIELD_DECLs
    and assume that these expressions result in no (intermediate) overflow.
    This assumption is necessary to fold the expressions as much as possible,
    so as to avoid creating artificially variable-sized types in languages
    supporting variable-sized types like Ada.  */

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]