This is the mail archive of the gcc@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: On INTEGER_CST


On 3/13/07, Paulo J. Matos <pocm@soton.ac.uk> wrote:


Which C type is HOST_WIDE_INT?

It can either be long, or long long depending on if the target needs it to be 64bits and what size of long on the host.

Isn't the type of the constant always integer_type?
No, it can be POINTER_TYPE, ENUMERAL_TYPE or OFFSET_TYPE (and INTEGER_TYPE).

How can I know if it is negative or positive?

You can use tree_int_cst_sign_bit or tree_int_cst_msb depending on the context.


-- Pinski


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