aboutsummaryrefslogtreecommitdiffstats
path: root/bswap.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-05-10 17:07:36 -0700
committerDavid 'Digit' Turner <digit@android.com>2010-05-10 18:35:07 -0700
commit20894ae3fa98f82da925fbeb72e616eef509758a (patch)
treec55db026ddc60683434f48d6c58cf51677609074 /bswap.h
parent1368f99ba2c6f29a97ba057d30d4a0235c83a441 (diff)
downloadexternal_qemu-20894ae3fa98f82da925fbeb72e616eef509758a.zip
external_qemu-20894ae3fa98f82da925fbeb72e616eef509758a.tar.gz
external_qemu-20894ae3fa98f82da925fbeb72e616eef509758a.tar.bz2
Upstream: HOST_WORDS_ALIGNED -> WORDS_ALIGNED
Change-Id: Ica9022695d83fb48a8c25fdb1e1f0dc1c63747ff
Diffstat (limited to 'bswap.h')
-rw-r--r--bswap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bswap.h b/bswap.h
index 1dd357e..90bd66f 100644
--- a/bswap.h
+++ b/bswap.h
@@ -81,7 +81,7 @@ static inline void bswap64s(uint64_t *s)
*s = bswap64(*s);
}
-#if defined(WORDS_BIGENDIAN)
+#if defined(HOST_WORDS_BIGENDIAN)
#define be_bswap(v, size) (v)
#define le_bswap(v, size) bswap ## size(v)
#define be_bswaps(v, size)
@@ -203,7 +203,7 @@ static inline void cpu_to_be32wu(uint32_t *p, uint32_t v)
#endif
-#ifdef WORDS_BIGENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
#define cpu_to_32wu cpu_to_be32wu
#else
#define cpu_to_32wu cpu_to_le32wu