]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/i386/_param.h
xnu-4570.31.3.tar.gz
[apple/xnu.git] / bsd / i386 / _param.h
index b7cbc128add031983139742d23ab0e11b153564a..61f0d24c3a44cdf857bf3c88928a1c02a9c34693 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
  * cast to any desired pointer type.
  */
 #define        __DARWIN_ALIGNBYTES     (sizeof(__darwin_size_t) - 1)
-#define        __DARWIN_ALIGN(p)       ((__darwin_size_t)((char *)(p) + __DARWIN_ALIGNBYTES) &~ __DARWIN_ALIGNBYTES)
+#define        __DARWIN_ALIGN(p)       ((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_ALIGNBYTES) &~ __DARWIN_ALIGNBYTES)
+
+#define      __DARWIN_ALIGNBYTES32     (sizeof(__uint32_t) - 1)
+#define       __DARWIN_ALIGN32(p)       ((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_ALIGNBYTES32) &~ __DARWIN_ALIGNBYTES32)
+
 
 #endif /* _I386__PARAM_H_ */