]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/proc_reg.h
xnu-517.tar.gz
[apple/xnu.git] / osfmk / ppc / proc_reg.h
index 5327ebe8d8ba7fd487a4061888e44569899434f4..c9edb399ad28b3679ba3622abb9e468ebfe20643 100644 (file)
 /* Define some useful masks that convert from bit numbers */
 
 #if __PPC__
-#if _BIG_ENDIAN
+#ifdef __BIG_ENDIAN__
 #ifndef ENDIAN_MASK
 #define ENDIAN_MASK(val,size) (1 << ((size-1) - val))
 #endif
 #else
 #error code not ported to little endian targets yet
-#endif /* _BIG_ENDIAN */
+#endif /* __BIG_ENDIAN__ */
 #endif /* __PPC__ */
 
 #define MASK32(PART)   ENDIAN_MASK(PART ## _BIT, 32)