From mboxrd@z Thu Jan 1 00:00:00 1970 From: pbonzini@redhat.com (Paolo Bonzini) Date: Thu, 18 Feb 2010 09:45:04 +0100 Subject: [ltt-dev] [PATCH 12/12] centralize definition of BITS_PER_LONG In-Reply-To: <20100218032554.GG11338@Krystal> References: <1266260686-17588-1-git-send-email-pbonzini@redhat.com> <1266260686-17588-13-git-send-email-pbonzini@redhat.com> <20100218032554.GG11338@Krystal> Message-ID: <4B7CFE10.8070803@redhat.com> On 02/18/2010 04:25 AM, Mathieu Desnoyers wrote: >> > +#if defined(__SIZEOF_LONG__) >> > +#define BITS_PER_LONG (__SIZEOF_LONG__ * 8) >> > +#elif defined(_LP64) > How about _LLP64 and _ILP64 ? (not sure exactly which architectures > would fit in this category nowadays though). They are not defined by GCC. I32LLP64 is basically only Mingw64 and ia64-hpux. They'd probably break horribly because with 99% likelihood somewhere there is an assumption that sizeof (long) == sizeof (void*). What used ILP64, maybe some Cray? Paolo