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