From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4EVY-0002fp-Lg for qemu-devel@nongnu.org; Tue, 30 Jul 2013 14:18:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4EVP-00036F-9F for qemu-devel@nongnu.org; Tue, 30 Jul 2013 14:18:52 -0400 Received: from mail-yh0-x234.google.com ([2607:f8b0:4002:c01::234]:35727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4EVP-000362-4Z for qemu-devel@nongnu.org; Tue, 30 Jul 2013 14:18:43 -0400 Received: by mail-yh0-f52.google.com with SMTP id f11so2564024yha.25 for ; Tue, 30 Jul 2013 11:18:42 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 30 Jul 2013 08:18:32 -1000 Message-Id: <1375208314-17233-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 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, Richard Henderson , afaerber@suse.de From: Richard Henderson 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~ 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