From nobody Mon Feb 9 22:38:09 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15532156535311010.7814406441843; Thu, 21 Mar 2019 17:47:33 -0700 (PDT) Received: from localhost ([127.0.0.1]:48918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h78LI-0001pq-AC for importer@patchew.org; Thu, 21 Mar 2019 20:47:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7830-0002zS-9J for qemu-devel@nongnu.org; Thu, 21 Mar 2019 20:28:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h77qv-0001D7-Ad for qemu-devel@nongnu.org; Thu, 21 Mar 2019 20:16:06 -0400 Received: from ozlabs.org ([203.11.71.1]:32973) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h77qu-00015a-DW; Thu, 21 Mar 2019 20:16:05 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 44QPML6Hnjz9sSZ; Fri, 22 Mar 2019 11:15:58 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1553213758; bh=jvBOff9QNrxbzYSjE1mPoir0rdUgfLQEX9i/Detlx0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JkoqNAJjB2M55E0yOlwtKQ5AlJSbHULeZsIn3gpeIBaSX+NFHbXhUAeweWEIgI4Cu ZAG284n+O1kKZddfelTXfAkDYpvILxVGBoL7+9hVZk/jVLeI3o2AFyof6dOirRQvak V5yGsxOzO90VMQqTrdMxdZI8GvsXInYzwLAFxEOQ= From: David Gibson To: richard.henderson@linaro.org, qemu-devel@nongnu.org, groug@nongnu.org, qemu-ppc@nongnu.org Date: Fri, 22 Mar 2019 11:15:26 +1100 Message-Id: <20190322001544.9794-8-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190322001544.9794-1-david@gibson.dropbear.id.au> References: <20190322001544.9794-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 203.11.71.1 Subject: [Qemu-devel] [RFC for-4.1 07/25] target/ppc: Style fixes for dfp_helper.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, mark.cave-ayland@ilande.co.uk, Alex Williamson , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , clg@kaod.org, aik@ozlabs.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: David Gibson Reviewed-by: C=C3=A9dric Le Goater --- target/ppc/dfp_helper.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/target/ppc/dfp_helper.c b/target/ppc/dfp_helper.c index 9164fe701b..ddab65c7ba 100644 --- a/target/ppc/dfp_helper.c +++ b/target/ppc/dfp_helper.c @@ -1104,19 +1104,19 @@ void helper_##op(CPUPPCState *env, uint64_t *t, uin= t64_t *b, uint32_t s) \ } = \ } = \ = \ - while (offset < (size)/4) { = \ + while (offset < (size) / 4) { = \ n++; = \ - digits[(size)/4-n] =3D dfp_get_bcd_digit_##size(dfp.b64, offset++)= ; \ - if (digits[(size)/4-n] > 10) { = \ + digits[(size) / 4 - n] =3D dfp_get_bcd_digit_##size(dfp.b64, offse= t++); \ + if (digits[(size) / 4 - n] > 10) { = \ dfp_set_FPSCR_flag(&dfp, FP_VX | FP_VXCVI, FPSCR_VE); = \ return; = \ } else { = \ - nonzero |=3D (digits[(size)/4-n] > 0); = \ + nonzero |=3D (digits[(size) / 4 - n] > 0); = \ } = \ } = \ = \ if (nonzero) { = \ - decNumberSetBCD(&dfp.t, digits+((size)/4)-n, n); = \ + decNumberSetBCD(&dfp.t, digits+((size) / 4) - n, n); = \ } = \ = \ if (s && sgn) { = \ @@ -1170,13 +1170,13 @@ DFP_HELPER_XEX(dxexq, 128) static void dfp_set_raw_exp_64(uint64_t *t, uint64_t raw) { *t &=3D 0x8003ffffffffffffULL; - *t |=3D (raw << (63-13)); + *t |=3D (raw << (63 - 13)); } =20 static void dfp_set_raw_exp_128(uint64_t *t, uint64_t raw) { t[HI_IDX] &=3D 0x80003fffffffffffULL; - t[HI_IDX] |=3D (raw << (63-17)); + t[HI_IDX] |=3D (raw << (63 - 17)); } =20 #define DFP_HELPER_IEX(op, size) \ --=20 2.20.1