summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/sys
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-12-12 12:31:33 +0100
committerChristian Mauderer <Christian.Mauderer@embedded-brains.de>2017-01-17 12:50:57 +0100
commitefc782bd1cf91e5441935c5f3a990c340c9660df (patch)
tree3444f7ce1ae60584501e86805c90d3675ff8c9fb /rtemsbsd/include/rtems/bsd/sys
parentImport IEEE 802.11 from FreeBSD. (diff)
downloadrtems-libbsd-efc782bd1cf91e5441935c5f3a990c340c9660df.tar.bz2
Port IEEE 802.11.
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/sys')
-rw-r--r--rtemsbsd/include/rtems/bsd/sys/param.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/sys/param.h b/rtemsbsd/include/rtems/bsd/sys/param.h
index fb9b80cc..8042746c 100644
--- a/rtemsbsd/include/rtems/bsd/sys/param.h
+++ b/rtemsbsd/include/rtems/bsd/sys/param.h
@@ -177,6 +177,14 @@
#endif
/*
+ * 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) ((((u_long)(p)) & (sizeof(t) - 1)) == 0)
+
+/*
* Some macros for units conversion
*/