From: Paolo Bonzini <bonzini@gnu.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/3] vga: remove unused macros
Date: Sat, 8 Aug 2015 15:11:08 +0200 [thread overview]
Message-ID: <1439039469-438-3-git-send-email-bonzini@gnu.org> (raw)
In-Reply-To: <1439039469-438-1-git-send-email-bonzini@gnu.org>
Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
---
hw/display/vga.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/hw/display/vga.c b/hw/display/vga.c
index 5965ab2..19dcb6b 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -101,12 +101,6 @@ const uint8_t gr_mask[16] = {
#endif
#ifdef HOST_WORDS_BIGENDIAN
-#define BIG 1
-#else
-#define BIG 0
-#endif
-
-#ifdef HOST_WORDS_BIGENDIAN
#define GET_PLANE(data, p) (((data) >> (24 - (p) * 8)) & 0xff)
#else
#define GET_PLANE(data, p) (((data) >> ((p) * 8)) & 0xff)
@@ -131,14 +125,6 @@ static const uint32_t mask16[16] = {
PAT(0xffffffff),
};
-#undef PAT
-
-#ifdef HOST_WORDS_BIGENDIAN
-#define PAT(x) (x)
-#else
-#define PAT(x) cbswap_32(x)
-#endif
-
static uint32_t expand4[256];
static uint16_t expand2[256];
static uint8_t expand4to8[16];
--
2.4.3
next prev parent reply other threads:[~2015-08-08 13:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-08 13:11 [Qemu-devel] [PATCH 0/3] vga: first round of hardware emulation fixes Paolo Bonzini
2015-08-08 13:11 ` [Qemu-devel] [PATCH 1/3] vga: mask addresses in non-VESA modes to 256k Paolo Bonzini
2015-08-08 13:11 ` Paolo Bonzini [this message]
2015-08-08 13:11 ` [Qemu-devel] [PATCH 3/3] vga: fix CGA 640x200 mode Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439039469-438-3-git-send-email-bonzini@gnu.org \
--to=bonzini@gnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).