diff options
author | David 'Digit' Turner <digit@android.com> | 2010-05-10 17:07:36 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-05-10 18:35:07 -0700 |
commit | 20894ae3fa98f82da925fbeb72e616eef509758a (patch) | |
tree | c55db026ddc60683434f48d6c58cf51677609074 /hw | |
parent | 1368f99ba2c6f29a97ba057d30d4a0235c83a441 (diff) | |
download | external_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 'hw')
-rw-r--r-- | hw/bt-hci.c | 2 | ||||
-rw-r--r-- | hw/goldfish_fb.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hw/bt-hci.c b/hw/bt-hci.c index a5902b0..7837d9e 100644 --- a/hw/bt-hci.c +++ b/hw/bt-hci.c @@ -421,7 +421,7 @@ static void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t *dat * be continuously allocated. We do it though, to preserve similar * behaviour between hosts. Some things, like the BD_ADDR cannot be * preserved though (for example if a real hci is used). */ -#ifdef WORDS_BIGENDIAN +#ifdef HOST_WORDS_BIGENDIAN # define HNDL(raw) bswap16(raw) #else # define HNDL(raw) (raw) diff --git a/hw/goldfish_fb.c b/hw/goldfish_fb.c index 4a0e335..d092fe4 100644 --- a/hw/goldfish_fb.c +++ b/hw/goldfish_fb.c @@ -196,7 +196,7 @@ static void goldfish_fb_update_display(void *opaque) for (nn = 0; nn < width; nn++) { unsigned spix = src[nn]; unsigned dpix = dst[nn]; -#if WORDS_BIGENDIAN +#if HOST_WORDS_BIGENDIAN spix = ((spix << 8) | (spix >> 8)) & 0xffff; #else if (spix != dpix) @@ -207,7 +207,7 @@ static void goldfish_fb_update_display(void *opaque) if (nn == width) continue; -#if WORDS_BIGENDIAN +#if HOST_WORDS_BIGENDIAN for ( ; nn < width; nn++ ) { unsigned spix = src[nn]; dst[nn] = (uint16_t)((spix << 8) | (spix >> 8)); @@ -229,7 +229,7 @@ static void goldfish_fb_update_display(void *opaque) uint16_t* src = (uint16_t*) src_line; uint16_t* dst = (uint16_t*) dst_line; int len = width*2; -#if WORDS_BIGENDIAN +#if HOST_WORDS_BIGENDIAN int nn; #endif int dirty = 0; @@ -248,7 +248,7 @@ static void goldfish_fb_update_display(void *opaque) if (!dirty) continue; -#if WORDS_BIGENDIAN +#if HOST_WORDS_BIGENDIAN for (nn = 0; nn < width; nn++ ) { unsigned spix = src[nn]; dst[nn] = (uint16_t)((spix << 8) | (spix >> 8)); |