Skip to content

Commit

Permalink
introduce leul_to_cpu
Browse files Browse the repository at this point in the history
To be used by next patch.

Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
matosatti committed Apr 28, 2010
1 parent cce83b7 commit 213acd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bswap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 213acd2

Please sign in to comment.