PATCH: Check LONG_MAX > INT_MAX for __WORDSIZE

Paul Eggert eggert@cs.ucla.edu
Fri Apr 13 14:53:00 GMT 2012


On 04/13/2012 06:46 AM, Chris Metcalf wrote:
> I like
> the idea of __ILP32__ in any case (I've forwarded it on to our gcc folks)
> but currently we only have __LP64__.

Come to think of it, how about having individual macros
like __LONG_BITS__ and __INTPTR_BITS__ with integer values,
instead of combination boolean macros like __ILP32__ and
__LP64__ and whatnot?  Having individual macros for each
word length be simpler and easier to understand and would
probably scale better to future architectures.



More information about the Libc-alpha mailing list