39,19 → 39,19 |
#include <byteorder.h> |
|
#ifdef BIG_ENDIAN |
static inline __u64 __u64_le2host(__u64 n) |
static inline uint64_t uint64_t_le2host(uint64_t n) |
{ |
return __u64_byteorder_swap(n); |
return uint64_t_byteorder_swap(n); |
} |
|
static inline __native __native_le2host(__native n) |
static inline unative_t unative_t_le2host(unative_t n) |
{ |
return __u32_byteorder_swap(n); |
return uint32_t_byteorder_swap(n); |
} |
|
#else |
# define __native_le2host(n) (n) |
# define __u64_le2host(n) (n) |
# define unative_t_le2host(n) (n) |
# define uint64_t_le2host(n) (n) |
#endif |
|
#endif |