Received: from eggs.gnu.org ([2001:4830:134:3::10]:59177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4F6i-0005fu-9C for qemu-devel@nongnu.org; Tue, 30 Jul 2013 14:57:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4F1T-0006rK-NU for qemu-devel@nongnu.org; Tue, 30 Jul 2013 14:52:00 -0400 Received: from mail-gh0-x22a.google.com ([2607:f8b0:4002:c05::22a]:55704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4EXP-0004C8-TE for qemu-devel@nongnu.org; Tue, 30 Jul 2013 14:20:47 -0400 Received: by mail-gh0-f170.google.com with SMTP id z10so1877051ghb.29 for ; Tue, 30 Jul 2013 11:20:47 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 30 Jul 2013 08:20:41 -1000 Message-Id: <1375208443-17288-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v2 0/2] Fix qdev 32-bit compilation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: vasilis.liaskovitis@profitbricks.com, imammedo@redhat.com, aliguori@us.ibm.com, afaerber@suse.de The patch e8cd45c78f53501e75bd455140da63d1b7ed3685 broke compilation on 32-bit with a 40-bit shift of "long int". The first patch is the trivial fix for that bug. The second patch is an optional improvement that avoids the division loop entirely. r~ -- V2: Fixing erroneous email from mis-configured vm. Richard Henderson (2): qdev: Fix 32-bit compilation in print_size qdev: Use clz in print_size hw/core/qdev-properties.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) -- 1.8.3.1