From 20894ae3fa98f82da925fbeb72e616eef509758a Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 10 May 2010 17:07:36 -0700 Subject: Upstream: HOST_WORDS_ALIGNED -> WORDS_ALIGNED Change-Id: Ica9022695d83fb48a8c25fdb1e1f0dc1c63747ff --- hw/goldfish_fb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hw/goldfish_fb.c') 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)); -- cgit v1.1