Rev 1888 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1888 | Rev 2003 | ||
---|---|---|---|
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 | ||
38 | /* IA-32 is little-endian */ |
40 | /* IA-32 is little-endian */ |
39 | #define unative_t_le2host(n) (n) |
41 | #define uint32_t_le2host(n) (n) |
40 | #define uint64_t_le2host(n) (n) |
42 | #define uint64_t_le2host(n) (n) |
41 | 43 | ||
- | 44 | #define uint32_t_be2host(n) uint64_t_byteorder_swap(n) |
|
- | 45 | #define uint64_t_be2host(n) uint32_t_byteorder_swap(n) |
|
- | 46 | ||
42 | #endif |
47 | #endif |
43 | 48 | ||
44 | /** @} |
49 | /** @} |
45 | */ |
50 | */ |