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: Another bit of ISO C conversion...


 > This can become
 > 
 > #if HOST_BITS_PER_LONG >= 64 || !defined NEED_64BIT_HOST_WIDE_INT
 > #   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
 > #   define HOST_WIDE_INT long
 > #elif HOST_BITS_PER_LONGLONG >= 64
 > #   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONGLONG
 > #   define HOST_WIDE_INT long long
 > #elif HOST_BITS_PER___INT64 >= 64
 > #   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER___INT64
 > #   define HOST_WIDE_INT __int64
 > #else
 > #   error "Unable to find a suitable type for HOST_WIDE_INT"
 > #endif
 > 
 > which is simpler, easier to read, and easier to modify.  


Since you brought up this code in hwint.h, I was wondering...

Didn't we used to use HOST_WIDE_INT=int in some cases?  What happened
to that?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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