diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-11 22:14:18 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-11 22:14:18 +0000 |
commit | 3142c2ac925db5e97494d72d15e66511d1af598e (patch) | |
tree | 81a3dba4993dbffd7f35114bd0c88f02bac2493e /sys/arch/arc/include | |
parent | bdef5d6d20bb32cfc61161686f41ec45d609f3e9 (diff) |
define ALIGNED_POINTER
Diffstat (limited to 'sys/arch/arc/include')
-rw-r--r-- | sys/arch/arc/include/param.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/arc/include/param.h b/sys/arch/arc/include/param.h index c7a8156b2bb..39387239bdd 100644 --- a/sys/arch/arc/include/param.h +++ b/sys/arch/arc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.11 1998/08/30 22:05:35 millert Exp $ */ +/* $OpenBSD: param.h,v 1.12 1999/08/11 22:14:17 niklas Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -73,6 +73,7 @@ */ #define ALIGNBYTES 7 #define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES) +#define ALIGNED_POINTER(p, t) ((((u_int32_t)(p)) & (sizeof (t) - 1)) == 0) #define NBPG 4096 /* bytes/page */ #define PGOFSET (NBPG-1) /* byte offset into page */ |