introduce leul_to_cpu
To be used by next patch. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
cce83b7d62
commit
213acd2ec2
2
bswap.h
2
bswap.h
@ -205,8 +205,10 @@ static inline void cpu_to_be32wu(uint32_t *p, uint32_t v)
|
|||||||
|
|
||||||
#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) 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
|
||||||
|
Loading…
Reference in New Issue
Block a user