SCCS-vsn: sys/vax/include/param.h 7.21
SCCS-vsn: sys/tahoe/include/param.h 7.10
SCCS-vsn: sys/hp300/include/param.h 7.9
SCCS-vsn: sys/i386/include/param.h 5.9
*
* from: Utah $Hdr: machparam.h 1.11 89/08/14$
*
*
* from: Utah $Hdr: machparam.h 1.11 89/08/14$
*
- * @(#)param.h 7.8 (Berkeley) %G%
+ * @(#)param.h 7.9 (Berkeley) %G%
#define MACHINE "hp300"
/*
#define MACHINE "hp300"
/*
- * Round p (pointer or byte index) up to a correctly-aligned value
- * for all data types (int, long, ...). The result is u_int and
- * must be cast to any desired pointer type.
+ * Round p (pointer or byte index) up to a correctly-aligned value for all
+ * data types (int, long, ...). The result is u_int and must be cast to
+ * any desired pointer type.
-#define ALIGN(p) (((u_int)(p) + (sizeof(int) - 1)) &~ (sizeof(int) - 1))
+#define ALIGN(p) (((u_int)(p) + 3) &~ 3)
#define NBPG 4096 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
#define NBPG 4096 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)param.h 5.8 (Berkeley) %G%
+ * @(#)param.h 5.9 (Berkeley) %G%
#define MACHINE "i386"
/*
#define MACHINE "i386"
/*
- * Round p (pointer or byte index) up to a correctly-aligned value
- * for all data types (int, long, ...). The result is u_int and
- * must be cast to any desired pointer type.
+ * Round p (pointer or byte index) up to a correctly-aligned value for all
+ * data types (int, long, ...). The result is u_int and must be cast to
+ * any desired pointer type.
-#define ALIGN(p) (((u_int)(p) + (sizeof(int) - 1)) &~ (sizeof(int) - 1))
+#define ALIGN(p) (((u_int)(p) + 3) &~ 3)
#define NBPG 4096 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
#define NBPG 4096 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
*
* %sccs.include.proprietary.c%
*
*
* %sccs.include.proprietary.c%
*
- * @(#)param.h 7.9 (Berkeley) %G%
+ * @(#)param.h 7.10 (Berkeley) %G%
#define MACHINE "tahoe"
/*
#define MACHINE "tahoe"
/*
- * Round p (pointer or byte index) up to a correctly-aligned value
- * for all data types (int, long, ...). The result is u_int and
- * must be cast to any desired pointer type.
+ * Round p (pointer or byte index) up to a correctly-aligned value for all
+ * data types (int, long, ...). The result is u_int and must be cast to
+ * any desired pointer type.
-#define ALIGN(p) (((u_int)(p) + (sizeof(int) - 1)) &~ (sizeof(int) - 1))
+#define ALIGN(p) (((u_int)(p) + 3) &~ 3)
#define NBPG 1024 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
#define NBPG 1024 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
*
* %sccs.include.proprietary.c%
*
*
* %sccs.include.proprietary.c%
*
- * @(#)param.h 7.20 (Berkeley) %G%
+ * @(#)param.h 7.21 (Berkeley) %G%
- * Round p (pointer or byte index) up to a correctly-aligned value
- * for all data types (int, long, ...). The result is u_int and
- * must be cast to any desired pointer type.
+ * Round p (pointer or byte index) up to a correctly-aligned value for all
+ * data types (int, long, ...). The result is u_int and must be cast to
+ * any desired pointer type.
-#define ALIGN(p) (((u_int)(p) + (sizeof(int) - 1)) &~ (sizeof(int) - 1))
+#define ALIGN(p) (((u_int)(p) + 3) &~ 3)
#define KERNBASE 0x80000000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
#define KERNBASE 0x80000000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)