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/goldfish_fb.c | |
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/goldfish_fb.c')
-rw-r--r-- | hw/goldfish_fb.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)); |