From patchwork Wed Oct 22 13:00:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Alrae X-Patchwork-Id: 402111 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8C24C14001A for ; Thu, 23 Oct 2014 00:10:49 +1100 (AEDT) Received: from localhost ([::1]:57211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgvgd-0004Zf-17 for incoming@patchwork.ozlabs.org; Wed, 22 Oct 2014 09:10:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgvX9-0005NX-Iz for qemu-devel@nongnu.org; Wed, 22 Oct 2014 09:01:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgvX4-0007mN-05 for qemu-devel@nongnu.org; Wed, 22 Oct 2014 09:00:59 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:31764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgvX3-0007mF-Or for qemu-devel@nongnu.org; Wed, 22 Oct 2014 09:00:53 -0400 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 03434D9BD1860; Wed, 22 Oct 2014 14:00:49 +0100 (IST) Received: from virtUbuntuLTP.kl.imgtec.org (192.168.14.163) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 22 Oct 2014 14:00:51 +0100 From: Leon Alrae To: Date: Wed, 22 Oct 2014 14:00:29 +0100 Message-ID: <1413982829-27225-1-git-send-email-leon.alrae@imgtec.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [192.168.14.163] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.59.15.196 Cc: peter.maydell@linaro.org Subject: [Qemu-devel] [PATCH] target-mips: add ULL suffix in bitswap to avoid compiler warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Leon Alrae --- target-mips/op_helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index 5204ed8..9ec548c 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -267,12 +267,12 @@ target_ulong helper_mulshiu(CPUMIPSState *env, target_ulong arg1, static inline target_ulong bitswap(target_ulong v) { - v = ((v >> 1) & (target_ulong)0x5555555555555555) | - ((v & (target_ulong)0x5555555555555555) << 1); - v = ((v >> 2) & (target_ulong)0x3333333333333333) | - ((v & (target_ulong)0x3333333333333333) << 2); - v = ((v >> 4) & (target_ulong)0x0F0F0F0F0F0F0F0F) | - ((v & (target_ulong)0x0F0F0F0F0F0F0F0F) << 4); + v = ((v >> 1) & (target_ulong)0x5555555555555555ULL) | + ((v & (target_ulong)0x5555555555555555ULL) << 1); + v = ((v >> 2) & (target_ulong)0x3333333333333333ULL) | + ((v & (target_ulong)0x3333333333333333ULL) << 2); + v = ((v >> 4) & (target_ulong)0x0F0F0F0F0F0F0F0FULL) | + ((v & (target_ulong)0x0F0F0F0F0F0F0F0FULL) << 4); return v; }