This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: PATCH: Check LONG_MAX > INT_MAX for __WORDSIZE


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.


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