From f798d0607390d3b618faa8432fdcb65d02c324cf Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Wed, 28 Jul 1993 01:42:17 +0000 Subject: [PATCH] fts(3) integration patches --- sys/i386/include/param.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h index 1ee217a6eefb..8d30fac4db16 100644 --- a/sys/i386/include/param.h +++ b/sys/i386/include/param.h @@ -57,7 +57,9 @@ * 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 ALIGNBYTES (sizeof(int) - 1) +#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES) + #define NBPG 4096 /* bytes/page */ #define PGOFSET (NBPG-1) /* byte offset into page */