Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2794 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #define KERN_ia64_BYTEORDER_H_ |
36 | #define KERN_ia64_BYTEORDER_H_ |
37 | 37 | ||
38 | #include <byteorder.h> |
38 | #include <byteorder.h> |
39 | 39 | ||
40 | /* IA-64 is little-endian */ |
40 | /* IA-64 is little-endian */ |
- | 41 | #define uint16_t_le2host(n) (n) |
|
41 | #define uint32_t_le2host(n) (n) |
42 | #define uint32_t_le2host(n) (n) |
42 | #define uint64_t_le2host(n) (n) |
43 | #define uint64_t_le2host(n) (n) |
43 | 44 | ||
- | 45 | #define uint16_t_be2host(n) uint16_t_byteorder_swap(n) |
|
44 | #define uint32_t_be2host(n) uint32_t_byteorder_swap(n) |
46 | #define uint32_t_be2host(n) uint32_t_byteorder_swap(n) |
45 | #define uint64_t_be2host(n) uint64_t_byteorder_swap(n) |
47 | #define uint64_t_be2host(n) uint64_t_byteorder_swap(n) |
46 | 48 | ||
47 | #endif |
49 | #endif |
48 | 50 |