From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nvD-0000AR-UI for qemu-devel@nongnu.org; Mon, 13 Jan 2014 15:15:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2nv5-0002TM-Gi for qemu-devel@nongnu.org; Mon, 13 Jan 2014 15:15:43 -0500 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:61236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nv5-0002TF-2E for qemu-devel@nongnu.org; Mon, 13 Jan 2014 15:15:35 -0500 Received: by mail-la0-f42.google.com with SMTP id n7so764207lam.15 for ; Mon, 13 Jan 2014 12:15:33 -0800 (PST) From: Antony Pavlov Date: Tue, 14 Jan 2014 00:23:30 +0400 Message-Id: <1389644612-4963-1-git-send-email-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH RESEND 0/2] use sizes.h macros for power-of-two sizes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Antony Pavlov , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Aurelien Jarno , Richard Henderson The sizes.h macros is an easy-to-read method of power-of-two memory sizes representation. The sizes.h macros are actively used in the linux kernel and other projects, so let's use them in QEMU too. Antony Pavlov (2): include/qemu: introduce sizes.h hw/mips: use sizes.h macros hw/mips/mips_malta.c | 25 +++++++++++---------- include/hw/mips/bios.h | 3 ++- include/qemu/sizes.h | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 13 deletions(-) create mode 100644 include/qemu/sizes.h -- 1.8.5.2