Rev 2794 | Go to most recent revision | 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_ia32_BYTEORDER_H_ |
35 | #ifndef KERN_ia32_BYTEORDER_H_ |
36 | #define KERN_ia32_BYTEORDER_H_ |
36 | #define KERN_ia32_BYTEORDER_H_ |
37 | 37 | ||
38 | #include <byteorder.h> |
- | |
39 | - | ||
40 | /* IA-32 is little-endian */ |
38 | /* IA-32 is little-endian */ |
41 | #define uint16_t_le2host(n) (n) |
- | |
42 | #define uint32_t_le2host(n) (n) |
- | |
43 | #define uint64_t_le2host(n) (n) |
39 | #define ARCH_IS_LITTLE_ENDIAN |
44 | - | ||
45 | #define uint16_t_be2host(n) uint16_t_byteorder_swap(n) |
- | |
46 | #define uint32_t_be2host(n) uint32_t_byteorder_swap(n) |
- | |
47 | #define uint64_t_be2host(n) uint64_t_byteorder_swap(n) |
- | |
48 | 40 | ||
49 | #endif |
41 | #endif |
50 | 42 | ||
51 | /** @} |
43 | /** @} |
52 | */ |
44 | */ |