From efc782bd1cf91e5441935c5f3a990c340c9660df Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Mon, 12 Dec 2016 12:31:33 +0100 Subject: Port IEEE 802.11. --- rtemsbsd/include/rtems/bsd/sys/param.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rtemsbsd/include/rtems/bsd/sys') 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 @@ -176,6 +176,14 @@ #define _ALIGN(p) (((uintptr_t)(p) + _ALIGNBYTES) &~ _ALIGNBYTES) #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 */ -- cgit v1.2.3