]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/ppc/_param.h
xnu-1456.1.26.tar.gz
[apple/xnu.git] / bsd / ppc / _param.h
index 7adb76efc226b65a81c1fc9b22f6e23973733112..938fc499f1fa761c79d491f5e2632dbc6cb35f99 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, 2008 Apple 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 *)(__darwin_intptr_t)(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_intptr_t)(p) + __DARWIN_ALIGNBYTES32) &~ __DARWIN_ALIGNBYTES32)
+#define      __DARWIN_ALIGNBYTES32     (sizeof(__uint32_t) - 1)
+#define       __DARWIN_ALIGN32(p)       ((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_ALIGNBYTES32) &~ __DARWIN_ALIGNBYTES32)
 
-#endif /* _PPC__PARAM_H_ */
+
+#endif /* _PPC__PARAM_H_ */