Port IEEE 802.11.

This commit is contained in:
Christian Mauderer
2016-12-12 12:31:33 +01:00
parent a241ea8e92
commit efc782bd1c
5 changed files with 56 additions and 2 deletions

View File

@@ -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
*/