From 5d60dc233a8551a64fd7ba853fea452dd8ac4850 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Wed, 27 Feb 2002 00:21:04 +0000 Subject: Add a macro for shift of an integer (1 << shift == sizeof). Move the pointer define to live alongside it. For kicks assert at compile time that they are correct. Use these instead of magic numbers. --- sys/sparc64/include/param.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/sparc64/include/param.h') diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index bd0f2a486946..72cf69c28039 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -82,6 +82,9 @@ #define MAXCPU 1 #endif /* SMP */ +#define INT_SHIFT 2 +#define PTR_SHIFT 3 + #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) -- cgit v1.2.3