Rev 2465 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2465 | Rev 2794 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | 38 | ||
39 | #include <byteorder.h> |
39 | #include <byteorder.h> |
40 | 40 | ||
41 | #ifdef BIG_ENDIAN |
41 | #ifdef BIG_ENDIAN |
42 | 42 | ||
- | 43 | #define uint16_t_le2host(n) uint16_t_byteorder_swap(n) |
|
43 | #define uint32_t_le2host(n) uint32_t_byteorder_swap(n) |
44 | #define uint32_t_le2host(n) uint32_t_byteorder_swap(n) |
44 | #define uint64_t_le2host(n) uint64_t_byteorder_swap(n) |
45 | #define uint64_t_le2host(n) uint64_t_byteorder_swap(n) |
45 | 46 | ||
- | 47 | #define uint16_t_be2host(n) (n) |
|
46 | #define uint32_t_be2host(n) (n) |
48 | #define uint32_t_be2host(n) (n) |
47 | #define uint64_t_be2host(n) (n) |
49 | #define uint64_t_be2host(n) (n) |
48 | 50 | ||
49 | #else |
51 | #else |
50 | 52 | ||
- | 53 | #define uint16_t_le2host(n) (n) |
|
51 | #define uint32_t_le2host(n) (n) |
54 | #define uint32_t_le2host(n) (n) |
52 | #define uint64_t_le2host(n) (n) |
55 | #define uint64_t_le2host(n) (n) |
53 | 56 | ||
- | 57 | #define uint16_t_be2host(n) uint16_t_byteorder_swap(n) |
|
54 | #define uint32_t_be2host(n) uint32_t_byteorder_swap(n) |
58 | #define uint32_t_be2host(n) uint32_t_byteorder_swap(n) |
55 | #define uint64_t_be2host(n) uint64_t_byteorder_swap(n) |
59 | #define uint64_t_be2host(n) uint64_t_byteorder_swap(n) |
56 | 60 | ||
57 | #endif |
61 | #endif |
58 | 62 |