Understanding integer_cst

Nathan Sidwell nathan@codesourcery.com
Thu Dec 8 11:40:00 GMT 2005


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



More information about the Gcc-help mailing list