From 1d4599e93bc0398566eff780689bc8aeb1a0cea1 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Fri, 23 Apr 2010 14:04:13 -0300 Subject: [PATCH] introduce leul_to_cpu To be used by next patch. Signed-off-by: Marcelo Tosatti --- bswap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bswap.h b/bswap.h index aace9b7..956f3fa 100644 --- a/bswap.h +++ b/bswap.h @@ -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 -- 2.7.4