Subject: Re: "const int" in conf/param.c?
To: None <email@example.com>
From: Simon Burge <firstname.lastname@example.org>
Date: 04/27/1999 13:54:25
"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))