40,24 → 40,24 |
|
#define 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); |
} |
|
|
/** Convert little-endian __native to host __native |
/** Convert little-endian unative_t to host unative_t |
* |
* Convert little-endian __native parameter to host endianess. |
* Convert little-endian unative_t parameter to host endianess. |
* |
* @param n Little-endian __native argument. |
* @param n Little-endian unative_t argument. |
* |
* @return Result in host endianess. |
* |
*/ |
static inline __native __native_le2host(__native n) |
static inline unative_t unative_t_le2host(unative_t n) |
{ |
__address v; |
uintptr_t v; |
|
asm volatile ( |
"lwbrx %0, %1, %2\n" |