From 18ed062bbf32149025b3eb8db38fab494dc3663a Mon Sep 17 00:00:00 2001 From: Kazumasa Utashiro Date: Thu, 17 Dec 1992 11:24:17 -0800 Subject: [PATCH] Added ALIGNBYTES macro SCCS-vsn: sys/news3400/include/param.h 7.4 --- usr/src/sys/news3400/include/param.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/src/sys/news3400/include/param.h b/usr/src/sys/news3400/include/param.h index f5eecdf235..c12894b38f 100644 --- a/usr/src/sys/news3400/include/param.h +++ b/usr/src/sys/news3400/include/param.h @@ -11,7 +11,7 @@ * * 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. */ -#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 */ -- 2.20.1