Subject: Re: Identifying LP64
To: None <firstname.lastname@example.org>
From: Simon Burge <email@example.com>
Date: 04/28/1999 07:30:09
"Eduardo E. Horvath" wrote:
> On Tue, 27 Apr 1999, Simon Burge wrote:
> > "Eduardo E. Horvath" wrote:
> > > sparc64 currently runs in either 32-bit or 64-bit mode, so the mbuf size
> > > should vary depending on the kernel. What we really need is some cpp
> > > define that reports pointer size so we can check that rather than:
> > >
> > > #if defined(alpha) || (defined(sparc64) && defined(__arch64__)) || \
> > > (defined(mips) && ...) || (defined(powerpc) ....
> > It doesn't have to be that bad:
> > #define MSIZE (128 * (sizeof(void *) / 4))
> It'll work in this case, but not in a number of other cases since sizeof()
> is a part of the compiler, not the preprocessor.
That was what I was trying to say - get the compiler to do the work.
It's too early in the morning - what is a case where you need the
preprocessor to do the job?