projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c53cf20
)
introduce leul_to_cpu
author
Marcelo Tosatti
<mtosatti@redhat.com>
Fri, 23 Apr 2010 17:04:13 +0000
(14:04 -0300)
committer
Marcelo Tosatti
<mtosatti@redhat.com>
Wed, 28 Apr 2010 16:41:14 +0000
(13:41 -0300)
To be used by next patch.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
bswap.h
patch
|
blob
|
history
diff --git
a/bswap.h
b/bswap.h
index
aace9b7
..
956f3fa
100644
(file)
--- 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