compat/freebsd11_network: Add arm/mips ALIGNED_POINTER
Change-Id: I39fc6a13bafcb329663e49bf2b0d86edcb795cfa
This commit is contained in:
parent
49223f54a7
commit
81b33e381f
|
@ -53,6 +53,10 @@
|
|||
#define ALIGNED_POINTER(p, t) 1
|
||||
#elif defined(__powerpc__)
|
||||
#define ALIGNED_POINTER(p, t) ((((uintptr_t)(p)) & (sizeof (t) - 1)) == 0)
|
||||
#elif defined(__arm__)
|
||||
#define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof(t) - 1)) == 0)
|
||||
#elif defined(__mips__)
|
||||
#define ALIGNED_POINTER(p, t) ((((unsigned long)(p)) & (sizeof (t) - 1)) == 0)
|
||||
#else
|
||||
#error Need definition of ALIGNED_POINTER for this arch!
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue