summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/param.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-02-27 00:21:04 +0000
committerjake <jake@FreeBSD.org>2002-02-27 00:21:04 +0000
commitaec950ed91b8b8213beef80d37b79183490697d3 (patch)
tree9694484fd890994f0ad4b37a22a46ed7fe961c05 /sys/sparc64/include/param.h
parentcc951d5968f59364cb20b34e3d9cae4fe628aaf0 (diff)
downloadFreeBSD-src-aec950ed91b8b8213beef80d37b79183490697d3.zip
FreeBSD-src-aec950ed91b8b8213beef80d37b79183490697d3.tar.gz
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.
Diffstat (limited to 'sys/sparc64/include/param.h')
-rw-r--r--sys/sparc64/include/param.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h
index bd0f2a4..72cf69c 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)
OpenPOWER on IntegriCloud