aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/include/param.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/include/param.h')
-rw-r--r--sys/mips/include/param.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/mips/include/param.h b/sys/mips/include/param.h
index ea599d11f5e9..250de77ba7eb 100644
--- a/sys/mips/include/param.h
+++ b/sys/mips/include/param.h
@@ -84,10 +84,16 @@
*/
#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 ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
+/*
+ * ALIGNED_POINTER is a boolean macro that checks whether an address
+ * is valid to fetch data elements of type t from on this architecture.
+ * This does not reflect the optimal alignment, just the possibility
+ * (within reasonable limits).
+ */
+#define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof (t) - 1)) == 0)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an