diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-04-23 14:04:13 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-04-28 13:41:14 -0300 |
commit | 213acd2ec24f86cdbfe3391c8776987fd6d5e373 (patch) | |
tree | cffa94999c6250e7adf8a234de1d08bfce36e885 /bswap.h | |
parent | cce83b7d625d71b8708c869403d1b8781af6f9b4 (diff) |
introduce leul_to_cpu
To be used by next patch.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'bswap.h')
-rw-r--r-- | bswap.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |