From patchwork Sun Jan 17 05:44:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 10406 Received: (qmail 80677 invoked by alias); 17 Jan 2016 05:44:27 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 80572 invoked by uid 89); 17 Jan 2016 05:44:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=747, 657, 74, 7, digits X-Spam-User: qpsmtpd, 2 recipients X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 17 Jan 2016 05:44:13 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 47301116751; Sun, 17 Jan 2016 00:44:12 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xOaeqVpmura0; Sun, 17 Jan 2016 00:44:12 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id D7ACC116748; Sun, 17 Jan 2016 00:44:11 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id D24E540B8A; Sun, 17 Jan 2016 09:44:07 +0400 (RET) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Michael Frysinger Subject: [pushed 1/2] minor reformatting in sim/common/sim-fpu.c. Date: Sun, 17 Jan 2016 09:44:04 +0400 Message-Id: <1453009445-1576-2-git-send-email-brobecker@adacore.com> In-Reply-To: <1453009445-1576-1-git-send-email-brobecker@adacore.com> References: <1453009445-1576-1-git-send-email-brobecker@adacore.com> This patch just makes a copy of formatting changes to better conform with the GNU Coding Style. sim/common/ChangeLog: * sim-fpu.c (print_bits): Minor reformatting (no code change). (sim_fpu_map): Likewise. --- sim/common/ChangeLog | 5 +++++ sim/common/sim-fpu.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index b2912fe..334a2a7 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2016-01-17 Joel Brobecker + + * sim-fpu.c (print_bits): Minor reformatting (no code change). + (sim_fpu_map): Likewise. + 2016-01-11 Mike Frysinger * sim-config.c (print_sim_config): Drop extra whitespace before = diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index 755977b..37383ec 100644 --- a/sim/common/sim-fpu.c +++ b/sim/common/sim-fpu.c @@ -65,7 +65,8 @@ print_bits (unsigned64 x, print (arg, "0"); bit >>= 1; - if (digits > 0) digits--; + if (digits > 0) + digits--; i = (i + 1) % 4; } } @@ -74,7 +75,8 @@ print_bits (unsigned64 x, /* Quick and dirty conversion between a host double and host 64bit int */ -typedef union { +typedef union +{ double d; unsigned64 i; } sim_fpu_map;