This is the mail archive of the gcc-help@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: Understanding integer_cst


Primrose.Mbanefo@Infineon.com wrote:

Does your expectation mean that TREE_INT_CST_HIGHs purpose is solely as
a sign indicator or does this indicate that 16 can also be repesented
even though sixteen would not fit in HOST_BITS_PER_WIDE_INT bits?
The latter.

TREE_INT_CST have two halves precisely so the compiler can represent numbers twice as large as that supported by the compiler the compiler was compiled with.

thus HOST_BITS_PER_WIDE_INT is half the size of what an integer_cst can represent.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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