Added ALIGNBYTES macro
authorKazumasa Utashiro <utashiro@ucbvax.Berkeley.EDU>
Thu, 17 Dec 1992 19:24:17 +0000 (11:24 -0800)
committerKazumasa Utashiro <utashiro@ucbvax.Berkeley.EDU>
Thu, 17 Dec 1992 19:24:17 +0000 (11:24 -0800)
SCCS-vsn: sys/news3400/include/param.h 7.4

usr/src/sys/news3400/include/param.h

index f5eecdf..c12894b 100644 (file)
@@ -11,7 +11,7 @@
  *
  * from: Utah $Hdr: machparam.h 1.11 89/08/14$
  *
  *
  * from: Utah $Hdr: machparam.h 1.11 89/08/14$
  *
- *     @(#)param.h     7.3 (Berkeley) %G%
+ *     @(#)param.h     7.4 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -25,7 +25,8 @@
  * data types (int, long, ...).   The result is u_int and must be cast to
  * any desired pointer type.
  */
  * data types (int, long, ...).   The result is u_int and must be cast to
  * any desired pointer type.
  */
-#define        ALIGN(p)        (((u_int)(p) + 3) &~ 3)
+#define        ALIGNBYTES      3
+#define        ALIGN(p)        (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
 
 #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 */