Rev 2794 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2794 | Rev 2797 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef KERN_ppc32_BYTEORDER_H_ |
35 | #ifndef KERN_ppc32_BYTEORDER_H_ |
36 | #define KERN_ppc32_BYTEORDER_H_ |
36 | #define KERN_ppc32_BYTEORDER_H_ |
37 | 37 | ||
38 | #include <byteorder.h> |
- | |
39 | - | ||
40 | #define uint16_t_le2host(n) uint16_t_byteorder_swap(n) |
- | |
41 | #define uint32_t_le2host(n) uint32_t_byteorder_swap(n) |
- | |
42 | #define uint64_t_le2host(n) uint64_t_byteorder_swap(n) |
- | |
43 | - | ||
44 | #define uint16_t_be2host(n) (n) |
- | |
45 | #define uint32_t_be2host(n) (n) |
- | |
46 | #define uint64_t_be2host(n) (n) |
38 | #define ARCH_IS_BIG_ENDIAN |
47 | 39 | ||
48 | #endif |
40 | #endif |
49 | 41 | ||
50 | /** @} |
42 | /** @} |
51 | */ |
43 | */ |