Rev 2003 | Rev 2071 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2003 | Rev 2057 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #ifndef KERN_ppc64_BYTEORDER_H_ |
35 | #ifndef KERN_ppc64_BYTEORDER_H_ |
36 | #define KERN_ppc64_BYTEORDER_H_ |
36 | #define KERN_ppc64_BYTEORDER_H_ |
37 | 37 | ||
38 | #include <byteorder.h> |
38 | #include <byteorder.h> |
39 | 39 | ||
40 | #define uint32_t_le2host(n) uint64_t_byteorder_swap(n) |
40 | #define uint32_t_le2host(n) uint32_t_byteorder_swap(n) |
41 | #define uint64_t_le2host(n) uint32_t_byteorder_swap(n) |
41 | #define uint64_t_le2host(n) uint64_t_byteorder_swap(n) |
42 | 42 | ||
43 | #define uint32_t_be2host(n) (n) |
43 | #define uint32_t_be2host(n) (n) |
44 | #define uint64_t_be2host(n) (n) |
44 | #define uint64_t_be2host(n) (n) |
45 | 45 | ||
46 | #endif |
46 | #endif |