version 1.1.1.5, 2018/04/24 17:34:50
|
version 1.1.1.6, 2018/04/24 18:24:25
|
Line 205 static inline void cpu_to_be32wu(uint32_
|
Line 205 static inline void cpu_to_be32wu(uint32_
|
|
|
#ifdef HOST_WORDS_BIGENDIAN |
#ifdef HOST_WORDS_BIGENDIAN |
#define cpu_to_32wu cpu_to_be32wu |
#define cpu_to_32wu cpu_to_be32wu |
|
#define leul_to_cpu(v) glue(glue(le,HOST_LONG_BITS),_to_cpu)(v) |
#else |
#else |
#define cpu_to_32wu cpu_to_le32wu |
#define cpu_to_32wu cpu_to_le32wu |
|
#define leul_to_cpu(v) (v) |
#endif |
#endif |
|
|
#undef le_bswap |
#undef le_bswap |
Line 214 static inline void cpu_to_be32wu(uint32_
|
Line 216 static inline void cpu_to_be32wu(uint32_
|
#undef le_bswaps |
#undef le_bswaps |
#undef be_bswaps |
#undef be_bswaps |
|
|
|
/* len must be one of 1, 2, 4 */ |
|
static inline uint32_t qemu_bswap_len(uint32_t value, int len) |
|
{ |
|
return bswap32(value) >> (32 - 8 * len); |
|
} |
|
|
#endif /* BSWAP_H */ |
#endif /* BSWAP_H */ |