Skip to content
Snippets Groups Projects
Commit 213acd2e authored by Marcelo Tosatti's avatar Marcelo Tosatti
Browse files

introduce leul_to_cpu


To be used by next patch.

Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent cce83b7d
No related branches found
No related tags found
No related merge requests found
......@@ -205,8 +205,10 @@ static inline void cpu_to_be32wu(uint32_t *p, uint32_t v)
#ifdef HOST_WORDS_BIGENDIAN
#define cpu_to_32wu cpu_to_be32wu
#define leul_to_cpu(v) le ## HOST_LONG_BITS ## _to_cpu(v)
#else
#define cpu_to_32wu cpu_to_le32wu
#define leul_to_cpu(v) (v)
#endif
#undef le_bswap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment