From nobody Tue Feb 10 12:43:15 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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1553215944771511.52630929744623; Thu, 21 Mar 2019 17:52:24 -0700 (PDT) Received: from localhost ([127.0.0.1]:49013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h78Pw-0006Aq-Oi for importer@patchew.org; Thu, 21 Mar 2019 20:52:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7837-00036o-Ce for qemu-devel@nongnu.org; Thu, 21 Mar 2019 20:28:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h77qm-0000pG-PA for qemu-devel@nongnu.org; Thu, 21 Mar 2019 20:15:57 -0400 Received: from ozlabs.org ([203.11.71.1]:41801) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h77ql-0000gN-BD; Thu, 21 Mar 2019 20:15:56 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 44QPMB3hZrz9sS4; Fri, 22 Mar 2019 11:15:50 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1553213750; bh=4mywC5l1rC6EvdzZrWyGXZ6VsHWGSlFKs+wQ7nOH7PE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CBqavxC/UEmxuDDHJOwBeFQoMtv4K35x3459F6nM0yW8SB224fWwwY0eje6X1VHa1 vxo49pOffOP55M8/jMWQ3SW5XO7twtnSjTKxK+ZdBhlBZWTavIld5SL3NELUVH03p8 jYmWMc90KBy2f9xYxJfgaIcLFvHqKcPdgcCcn1BI= 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:33 +1100 Message-Id: <20190322001544.9794-15-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 14/25] target/ppc: Style fixes for mfrom_table.inc.c & mfrom_table_gen.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/mfrom_table.inc.c | 3 +-- target/ppc/mfrom_table_gen.c | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target/ppc/mfrom_table.inc.c b/target/ppc/mfrom_table.inc.c index 6a1fa375c9..1653b974a4 100644 --- a/target/ppc/mfrom_table.inc.c +++ b/target/ppc/mfrom_table.inc.c @@ -1,5 +1,4 @@ -static const uint8_t mfrom_ROM_table[602] =3D -{ +static const uint8_t mfrom_ROM_table[602] =3D { 77, 77, 76, 76, 75, 75, 74, 74, 73, 73, 72, 72, 71, 71, 70, 70, 69, 69, 68, 68, 68, 67, 67, 66, diff --git a/target/ppc/mfrom_table_gen.c b/target/ppc/mfrom_table_gen.c index 631791808e..f96c4268ba 100644 --- a/target/ppc/mfrom_table_gen.c +++ b/target/ppc/mfrom_table_gen.c @@ -2,7 +2,7 @@ #include "qemu/osdep.h" #include =20 -int main (void) +int main(void) { double d; uint8_t n; @@ -10,7 +10,8 @@ int main (void) =20 printf("static const uint8_t mfrom_ROM_table[602] =3D\n{\n "); for (i =3D 0; i < 602; i++) { - /* Extremely decomposed: + /* + * Extremely decomposed: * -T0 / 256 * T0 =3D 256 * log10(10 + 1.0) + 0.5 */ @@ -23,8 +24,9 @@ int main (void) d +=3D 0.5; n =3D d; printf("%3d, ", n); - if ((i & 7) =3D=3D 7) + if ((i & 7) =3D=3D 7) { printf("\n "); + } } printf("\n};\n"); =20 --=20 2.20.1