Rev 2003 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2003 | Rev 2057 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | 39 | ||
40 | /* AMD64 is little-endian */ |
40 | /* AMD64 is little-endian */ |
41 | #define uint32_t_le2host(n) (n) |
41 | #define uint32_t_le2host(n) (n) |
42 | #define uint64_t_le2host(n) (n) |
42 | #define uint64_t_le2host(n) (n) |
43 | 43 | ||
44 | #define uint32_t_be2host(n) uint64_t_byteorder_swap(n) |
44 | #define uint32_t_be2host(n) uint32_t_byteorder_swap(n) |
45 | #define uint64_t_be2host(n) uint32_t_byteorder_swap(n) |
45 | #define uint64_t_be2host(n) uint64_t_byteorder_swap(n) |
46 | 46 | ||
47 | #endif |
47 | #endif |
48 | 48 | ||
49 | /** @} |
49 | /** @} |
50 | */ |
50 | */ |